Commit 104ec7b9b195adda4d1861688b44cebcf6b52396
1 parent
ddb14305
Exists in
master
Add dynamic menu definition
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Showing
1 changed file
with
30 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,30 @@ | @@ -0,0 +1,30 @@ | ||
1 | +{% load i18n %} | ||
2 | +<li class="dropdown"> | ||
3 | + <a href="#" class="dropdown-toggle" data-toggle="dropdown"> | ||
4 | + {% trans "Social" %} <b class="caret"></b> | ||
5 | + </a> | ||
6 | + <ul class="dropdown-menu"> | ||
7 | + <li> | ||
8 | + <a href="/social/search/people"> | ||
9 | + {% trans "Users" %} | ||
10 | + </a> | ||
11 | + </li> | ||
12 | + <li> | ||
13 | + <a href="/social/search/communities"> | ||
14 | + {% trans "Communities" %} | ||
15 | + </a> | ||
16 | + </li> | ||
17 | + {% if user.is_active %} | ||
18 | + <li> | ||
19 | + <a href="/social/profile/{{ user.username }}"> | ||
20 | + {% trans "Profile" %} | ||
21 | + </a> | ||
22 | + </li> | ||
23 | + <li> | ||
24 | + <a href="/social/myprofile/{{ user.username }}"> | ||
25 | + {% trans "Control panel" %} | ||
26 | + </a> | ||
27 | + </li> | ||
28 | + {% endif %} | ||
29 | + </ul> | ||
30 | +</li> | ||
0 | \ No newline at end of file | 31 | \ No newline at end of file |