Author
|
zPlus <-->
2016-11-28 23:37:45
|
Committer
|
zPlus <-->
2016-11-28 23:37:45
|
Commit
|
03601b4
(patch)
|
Tree
|
ca53ca5
|
Parent(s)
|
|
Show "Submit" button only if logged in
commits diff:
565402f..03601b4
1 file changed,
2 insertions,
2 deletions
—
download
Diffstat
Diff options
+2/-2
M template/header.twig
25
|
25
|
|
<p class="menu">
|
26
|
26
|
|
<a href="{{ ''|docroot }}">Hot</a> •
|
27
|
27
|
|
<a href="{{ 'new'|docroot }}">New</a> •
|
28
|
|
- |
<a href="{{ 'submit'|docroot }}">Submit</a> •
|
29
|
28
|
|
<a href="{{ 'about'|docroot }}">About</a> •
|
30
|
|
- |
{# <a href="https://libre.exchange">Shop</a> • #}
|
31
|
29
|
|
|
32
|
30
|
|
{% if user %}
|
33
|
31
|
|
{% set unread_messages = new_messages() %}
|
34
|
32
|
|
|
|
33
|
+ |
<a href="{{ 'submit'|docroot }}">Submit</a> •
|
|
34
|
+ |
|
35
|
35
|
|
{% if unread_messages %}
|
36
|
36
|
|
<a href="{{ 'user_activity/replies'|docroot }}" class="new_messages">
|
37
|
37
|
|
{{ user.name }} ({{ unread_messages }})
|