Skip to content

Commit

Permalink
[Security] Fix user profile.
Browse files Browse the repository at this point in the history
Fixes #94
  • Loading branch information
NoUseFreak committed Apr 9, 2015
1 parent 0959793 commit e32d2ae
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ security:
password: "Password"
remember_me: Remember me
submit: Login

user.profile.title: Profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ security:
password: Wachtwoord
remember_me: Onhoud mijn gegevens
submit: Aanmelden

user.profile.title: Profiel
27 changes: 27 additions & 0 deletions src/Clastic/SecurityBundle/Resources/views/Profile/show.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% extends 'ClasticBackofficeBundle::base.html.twig' %}

{% trans_default_domain 'FOSUserBundle' %}

{% block page_title %}{{ 'user.profile.title'|trans }}{% endblock %}

{% block content %}
<div class="row">
<div class="col-md-3">
<img src="{{ avatar() }}" class="img-thumbnail img-responsive" alt=""/>
</div>
<div class="col-md-9">
<table class="table table-bordered">
<tbody>
<tr>
<th class="info">{{ 'profile.show.username'|trans }}</th>
<td>{{ user.username }}</td>
</tr>
<tr>
<th class="info">{{ 'profile.show.email'|trans }}</th>
<td>{{ user.email }}</td>
</tr>
</tbody>
</table>
</div>
</div>
{% endblock %}
13 changes: 0 additions & 13 deletions src/Clastic/UserBundle/Resources/views/Profile/show.html.twig

This file was deleted.

0 comments on commit e32d2ae

Please sign in to comment.