Skip to content

Commit c33d92e

Browse files
committed
added tags
1 parent 70ec282 commit c33d92e

5 files changed

Lines changed: 314 additions & 44 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20160120022425
2+
# Build: 20160121123301
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎index.html‎

Lines changed: 17 additions & 4 deletions
Large diffs are not rendered by default.

‎static/app/index.html‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ <h5 class="variable-wrap" data-id="{id}" data-repo="{repo}" data-val="{val}"><sp
136136
</button>
137137
<button class="btn btn-primary-outline btn-sm add-account"><i class="fa fa-plus-circle"></i> GitHub</button>
138138
<button class="btn btn-primary-outline btn-sm add-group"><i class="fa fa-plus-circle"></i> Group</button>
139+
<div class="btn-group btn-group-sm" role="group">
140+
<div class="btn-group" role="group">
141+
<button type="button" class="btn btn-primary-outline dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
142+
<i class="fa fa-tags"></i> Tags
143+
</button>
144+
<div class="dropdown-menu dropdown-menu-right tag-menu">
145+
<div class="dropdown-item">
146+
All Tags
147+
</div>
148+
<div role="separator" class="dropdown-divider"></div>
149+
</div>
150+
</div>
151+
</div>
139152
</div>
140153
<div class="modal-body">
141154
<header class="hd empty">
@@ -192,14 +205,19 @@ <h5>Add GitHub accounts to organize your stars and repositories</h5>
192205
{name}
193206
</div>
194207
</script>
208+
<script type="text/html" data-template="tagItem">
209+
<div class="dropdown-item add-repo" data-id="{id}">
210+
<span class="label label-pill" style="background:{color};"><i class="fa fa-times"></i></span> {name}
211+
</div>
212+
</script>
195213
<script type="text/html" data-template="repoItem">
196214
<article class="card repo-item" data-id="{id}" data-repoid="{originRepoId}" data-name="{_full_name}">
197215
<div class="card-block">
198216
<header class="repo-item__hd"><h6><a href="{html_url}" target="_blank">{full_name}</a></h6></header>
199217
<section class="repo-item__bd fix-break-word">{description}</section>
200218
</div>
201219
<div class="card-footer">
202-
<div class="btn-group btn-group-sm" role="group">
220+
<div class="btn-group btn-group-sm group-menu" role="group">
203221
<div class="btn-group" role="group">
204222
<a class="dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="javascript:void(0);">
205223
Add to group
@@ -216,6 +234,16 @@ <h5>Add GitHub accounts to organize your stars and repositories</h5>
216234
</div>
217235
</div>
218236
</div>
237+
<div class="btn-group btn-group-sm tag-menu" role="group">
238+
<div class="btn-group" role="group">
239+
<a class="dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="javascript:void(0);">
240+
Add to tag
241+
</a>
242+
<div class="dropdown-menu">
243+
{tagItems}
244+
</div>
245+
</div>
246+
</div>
219247
</div>
220248
</article>
221249
</script>

‎static/app/resources/css/style.css‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ html,body{
145145
max-height: 98%;
146146
}
147147
.modal-header .close{
148-
padding-left: 1.25rem;
148+
padding-left: .65rem;
149149
}
150150
.modal--fix .modal-dialog,
151151
.modal--fix .modal-content{
@@ -211,6 +211,9 @@ html,body{
211211
.bookmark-logo{
212212
color: #70B7FD;
213213
}
214+
.bookmark-modal .modal-header>.btn{
215+
margin-right: .4rem;
216+
}
214217
.bookmark-modal .modal-body>.hd{
215218
padding-bottom: 1rem;
216219
}
@@ -264,9 +267,25 @@ html,body{
264267
cursor: pointer;
265268
}
266269
.bookmark-modal .repo-group-item[data-id="0"]>.hd .ctrl,
267-
.bookmark-modal .repo-group-item[data-id="0"] .dropdown-menu>.dropdown-item:last-child{
270+
.bookmark-modal .repo-group-item[data-id="0"] .group-menu .dropdown-menu>.dropdown-item:last-child{
271+
display: none;
272+
}
273+
.bookmark-modal .tag-menu .add-repo .label{
274+
position: relative;
275+
min-width: 1.15rem;
276+
min-height: 1.15rem;
277+
margin-bottom: -0.125rem;
278+
}
279+
.bookmark-modal .tag-menu .add-repo .label i{
268280
display: none;
269281
}
282+
.bookmark-modal .tag-menu .add-repo[data-tagged] .label{
283+
padding-left: 0;
284+
padding-right: 0;
285+
}
286+
.bookmark-modal .tag-menu .add-repo[data-tagged] .label i{
287+
display: inline-block;
288+
}
270289
.bookmark-user-modal .user-item:first-child{
271290
margin-top: 1rem;
272291
}

0 commit comments

Comments
 (0)