Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
fix(profile): Adds a link for profile edition
Browse files Browse the repository at this point in the history
If a logged in user navigate to his member page, it would expect to have a link to the edition page
  • Loading branch information
121593 committed Apr 15, 2020
1 parent 9a1f3e4 commit 75655c4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/views/membre.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@
</div>
<br />
<div class="name">
<h3 class="title"><%- member.firstName %> <%- member.lastName %></h3>
<h3 class="title">
<%- member.firstName %> <%- member.lastName %>
<% if(user.shortId === member.shortId) { %>
<a class="btn btn-primary btn-sm align-top" href="/perso/profil" style="line-height: normal;"><i class="fa fa-edit"></i> Éditer</a>
<% }%>
</h3>
<% if(member.github) { %>
<a href="https://github.com/<%- member.github %>" target="_blank" class="btn btn-just-icon btn-link btn-dribbble"><i class="fa fa-github"></i></a>
<a href="https://github.com/<%- member.github %>" target="_blank" class="btn btn-link btn-dribbble"><i class="fa fa-github fa-lg"></i> @<%- member.github %></a>
<% } %>
</div>
</div>
Expand Down

0 comments on commit 75655c4

Please sign in to comment.