Skip to content

Commit

Permalink
feat(admin): spruce up the look of the user list
Browse files Browse the repository at this point in the history
  • Loading branch information
Awk34 committed Dec 8, 2015
1 parent 00ae803 commit 38bb6b8
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 4 deletions.
18 changes: 18 additions & 0 deletions app/templates/client/app/admin(auth)/admin(css).css
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
.trash { color:rgb(209, 91, 71); }

.user-list li {
display: flex;
border: none;
border-bottom: 1px lightgray solid;
margin-bottom: 0;
}
.user-list li:last-child {
border-bottom: none;
}
.user-list li .user-info {
flex-grow: 1;
}
.user-list li .trash {
display: flex;
align-items: center;
text-decoration: none;
}
10 changes: 6 additions & 4 deletions app/templates/client/app/admin(auth)/admin(html).html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

<div class="container">
<p>The delete user and user index api routes are restricted to users with the 'admin' role.</p>
<ul class="list-group">
<ul class="list-group user-list">
<li class="list-group-item" ng-repeat="user in admin.users">
<strong>{{user.name}}</strong><br>
<span class="text-muted">{{user.email}}</span>
<a ng-click="admin.delete(user)" class="trash"><span class="glyphicon glyphicon-trash pull-right"></span></a>
<div class="user-info">
<strong>{{user.name}}</strong><br>
<span class="text-muted">{{user.email}}</span>
</div>
<a ng-click="admin.delete(user)" class="trash"><span class="fa fa-trash fa-2x"></span></a>
</li>
</ul>
</div>
19 changes: 19 additions & 0 deletions app/templates/client/app/admin(auth)/admin(less).less
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
.trash { color:rgb(209, 91, 71); }

.user-list {
li {
display: flex;
border: none;
border-bottom: 1px lightgray solid;
margin-bottom: 0;
&:last-child { border-bottom: none; }

.user-info {
flex-grow: 1;
}
.trash {
display: flex;
align-items: center;
text-decoration: none;
}
}
}
19 changes: 19 additions & 0 deletions app/templates/client/app/admin(auth)/admin(sass).scss
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
.trash { color:rgb(209, 91, 71); }

.user-list {
li {
display: flex;
border: none;
border-bottom: 1px lightgray solid;
margin-bottom: 0;
&:last-child { border-bottom: none; }

.user-info {
flex-grow: 1;
}
.trash {
display: flex;
align-items: center;
text-decoration: none;
}
}
}
15 changes: 15 additions & 0 deletions app/templates/client/app/admin(auth)/admin(stylus).styl
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
.trash
color rgb(209, 91, 71)

.user-list li
display: flex
border: none
border-bottom: 1px lightgray solid
margin-bottom: 0
&:last-child
border-bottom: none

.user-info
flex-grow: 1
.trash
display: flex
align-items: center
text-decoration: none

0 comments on commit 38bb6b8

Please sign in to comment.