diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-05 19:41:34 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-05 19:41:34 +1100 |
| commit | e507119e1737312ac00f2d2df9c3b161b2f60812 (patch) | |
| tree | f94ab3aa9a789144122dfa25fd2db247d897187c | |
| parent | dfaf58d78e95e9725ecf243a68fce44359e21fe4 (diff) | |
move PM notification to template
| -rw-r--r-- | templates/index.html | 6 | ||||
| -rw-r--r-- | templates/page.html | 2 | ||||
| -rw-r--r-- | templates/thread.html | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html index c0196e93..37577ff9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,9 +25,9 @@ }
{% endraw %}</style>{% endif %}
</head>
-<body>
+<body>
{{ boardlist.top }}
- {% if pm %}<div class="top_notice">{{ pm }}</div><hr />{% endif %}
+ {% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr />{% endif %}
{% if config.url_banner %}<img class="banner" src="{{ config.url_banner }}" {% if config.banner_height %}style="width:{% if config.banner_width %}{{ config.banner_width }}px{% endif %};height:{{ config.banner_height }}px" {% endif %}alt="" />{% endif %}
<h1>{{ board.url }} - {{ board.name }}</h1>
<div class="title">{% if board.title %}{{ board.title }}{% endif %}<p>{% if mod %}<a href="?/">Return to dashboard</a>{% endif %}</p></div>
@@ -161,4 +161,4 @@ <p class="unimportant" style="text-align:center;">All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.</p>
</body>
-</html>
\ No newline at end of file +</html>
diff --git a/templates/page.html b/templates/page.html index f246757b..5186dd6d 100644 --- a/templates/page.html +++ b/templates/page.html @@ -10,7 +10,7 @@ <script type="text/javascript" src="{{ config.url_javascript }}"></script>
</head>
<body>
- {% if pm %}<div class="top_notice">{{ pm }}</div><hr />{% endif %}
+ {% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr />{% endif %}
<h1>{{ title }}</h1>
<div class="title">{% if subtitle %}{{subtitle}}{% endif %}<p>{% if mod %}<a href="?/">Return to dashboard</a>{% endif %}</p></div>
{{ body }}
diff --git a/templates/thread.html b/templates/thread.html index 265b6063..909325f8 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -27,7 +27,7 @@ </head>
<body>
{{ boardlist.top }}
- {% if pm %}<div class="top_notice">{{ pm }}</div><hr />{% endif %}
+ {% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr />{% endif %}
{% if config.url_banner %}<img class="banner" src="{{ config.url_banner }}" {% if config.banner_height %}style="width:{% if config.banner_width %}{{ config.banner_width }}px{% endif %};height:{{ config.banner_height }}px" {% endif %}alt="" />{% endif %}
<h1>{{ board.url }} - {{ board.name }}</h1>
<div class="title">{% if board.title %}{{ board.title }}{% endif %}<p>{% if mod %}<a href="?/">Return to dashboard</a>{% endif %}</p></div>
|
