Skip to content

Commit

Permalink
add welcome panel for non-admin users
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweissman committed Jan 19, 2017
1 parent 1ba9d6f commit 6092750
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions app/sprinkles/admin/templates/pages/dashboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,31 @@
</button>
</div>
</div>
</div>
{% else %}
<div class="col-sm-4 col-sm-offset-4 col-xs-12">
<div class="box box-widget widget-user">
<!-- Add the bg color to the header using any of the bg-* classes -->
<div class="widget-user-header bg-black-active">
<h3 class="widget-user-username">
{{translate("WELCOME", {
'first_name': current_user.first_name
})}}
</h3>
</div>
<div class="widget-user-image">
<img class="img-circle" src="{{assets.url('assets://local/core/images/cupcake.png')}}" alt="User Avatar">
</div>
<div class="box-footer">
<h4>Welcome to {{site.title}}!</h4>
<p>
It doesn't look like any features have been set up for this account...yet. Maybe they haven't been implemented yet, or maybe someone forgot to give you access. Either way, we're glad to have you aboard!
</p>
</div>
</div>
<!-- /.widget-user -->


</div>
{% endif %}
{% if checkAccess('view_system_info') %}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6092750

Please sign in to comment.