Skip to content

Commit

Permalink
Added links to dashboard info-box
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Mar 20, 2017
1 parent d8539e1 commit 5873cfb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 24 deletions.
54 changes: 30 additions & 24 deletions app/sprinkles/admin/templates/pages/dashboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,47 @@
{% if checkAccess('uri_users') %}
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-aqua"><i class="fa fa-user fa-fw"></i></span>
<div class="info-box-content">
<span class="info-box-text">{{ translate("USER", 2) }}</span>
<span class="info-box-number">{{counter.users}}</span>
<a href="{{site.uri.public}}/admin/users">
<div class="info-box">
<span class="info-box-icon bg-aqua"><i class="fa fa-user fa-fw"></i></span>
<div class="info-box-content">
<span class="info-box-text">{{ translate("USER", 2) }}</span>
<span class="info-box-number">{{counter.users}}</span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
<!-- /.info-box -->
</a>
</div>
<!-- /.col -->

<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-red"><i class="fa fa-drivers-license"></i></span>
<div class="info-box-content">
<span class="info-box-text">{{ translate("ROLE", 2) }}</span>
<span class="info-box-number">{{counter.roles}}</span>
<a href="{{site.uri.public}}/admin/roles">
<div class="info-box">
<span class="info-box-icon bg-red"><i class="fa fa-drivers-license"></i></span>
<div class="info-box-content">
<span class="info-box-text">{{ translate("ROLE", 2) }}</span>
<span class="info-box-number">{{counter.roles}}</span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
<!-- /.info-box -->
</a>
</div>
<!-- /.col -->

<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-green"><i class="fa fa-users"></i></span>
<div class="info-box-content">
<span class="info-box-text">{{ translate("GROUP", 2) }}</span>
<span class="info-box-number">{{counter.groups}}</span>
<a href="{{site.uri.public}}/admin/groups">
<div class="info-box">
<span class="info-box-icon bg-green"><i class="fa fa-users"></i></span>
<div class="info-box-content">
<span class="info-box-text">{{ translate("GROUP", 2) }}</span>
<span class="info-box-number">{{counter.groups}}</span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
<!-- /.info-box -->
</a>
</div>
<!-- /.col -->
</div>
Expand Down
5 changes: 5 additions & 0 deletions app/sprinkles/core/assets/local/core/css/userfrosting.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,9 @@ form textarea {
.select2-container--default {
display: block;
width: 100% !important;
}

/* Fix for links on info-box */
a .info-box {
color: black;
}

0 comments on commit 5873cfb

Please sign in to comment.