Browse Source

move PM notification to template

pull/40/head
Savetheinternet 13 years ago
parent
commit
e507119e17
  1. 6
      templates/index.html
  2. 2
      templates/page.html
  3. 2
      templates/thread.html

6
templates/index.html

@ -25,9 +25,9 @@
} }
{% endraw %}</style>{% endif %} {% endraw %}</style>{% endif %}
</head> </head>
<body> <body>
{{ boardlist.top }} {{ 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 %} {% 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> <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> <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> <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> </body>
</html> </html>

2
templates/page.html

@ -10,7 +10,7 @@
<script type="text/javascript" src="{{ config.url_javascript }}"></script> <script type="text/javascript" src="{{ config.url_javascript }}"></script>
</head> </head>
<body> <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> <h1>{{ title }}</h1>
<div class="title">{% if subtitle %}{{subtitle}}{% endif %}<p>{% if mod %}<a href="?/">Return to dashboard</a>{% endif %}</p></div> <div class="title">{% if subtitle %}{{subtitle}}{% endif %}<p>{% if mod %}<a href="?/">Return to dashboard</a>{% endif %}</p></div>
{{ body }} {{ body }}

2
templates/thread.html

@ -27,7 +27,7 @@
</head> </head>
<body> <body>
{{ boardlist.top }} {{ 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 %} {% 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> <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> <div class="title">{% if board.title %}{{ board.title }}{% endif %}<p>{% if mod %}<a href="?/">Return to dashboard</a>{% endif %}</p></div>

Loading…
Cancel
Save