Commits

Anonymous committed a985699

More corrections

  • Participants
  • Parent commits 48f3b59
  • Branches lodgeit

Comments (0)

Files changed (1)

File lodgeit/views/layout.html

       {# <ul id="languages">
       {% for lang, name in i18n_languages %}
         <li{% if request.locale.language == lang %} class="active"{% endif %}>
-          <a href="{{ '/language/%s'|format(lang) }}"><img alt="{{ lang }}" src="{{ '/static/flags/%s.png'|format(lang) }}"></a>
+          <a href="{{ url('pastes/set_language', lang=format(lang)) }}"><img alt="{{ lang }}" src="{{ url('static', file='flags/%s.png'|format(lang)) }}"></a>
         </li>
       {% endfor %}
       </ul> #}
           <div class="notification">
             <h3>{% trans %}Someone Replied To Your Paste{% endtrans %}</h3>
             {% for paste in new_replies %}
-            <p>{% trans date=paste.pub_date|datetimeformat, parent=paste.parent.paste_id,
-                        paste=paste.paste_id, paste_url=paste.url|e, parent_url=paste.parent.url|e %}
+            <p>{% trans date=paste.pub_date|datetimeformat,
+                        parent=paste.parent.paste_id,
+                        paste=paste.paste_id, 
+                        paste_url=url('pastes/show_paste', identifier=paste.paste_id), 
+                        parent_url=url('pastes/show_paste', identifier=paste.parent.paste_id),
+                        compare_url=url('pastes/compare_paste', new_id=paste.paste_id, old_id=paste.parent.paste_id) %}
               on {{ date }} someone replied to your paste 
               <a href="{{ parent_url }}">#{{ parent }}</a>,
               in paste <a href="{{ paste_url }}">#{{ paste }}</a>. Click here to
-              <a href="/compare/{{ paste }}/{{ parent }}/">compare
-              those two pastes</a>.{% endtrans %}
+              <a href="{{ compare_url }}">compare those two pastes</a>.{% endtrans %}
             </p>
             {% endfor %}
             <p><a href="javascript:LodgeIt.hideNotification()">{% trans %}hide this notification{% endtrans %}</a></p>
         {% elif request.first_visit %}
           <div class="notification">
             <h3>{% trans %}Welcome On LodgeIt{% endtrans %}</h3>
-            <p>{%- trans -%}
+            <p>{%- trans url=url('static/about') -%}
               Welcome to the LodgeIt pastebin. In order to use the notification feature
               a 31 day cookie with an unique ID was created for you. The lodgeit database
               does not store any information about you, it's just used for an advanced
-              pastebin experience :-). Read more on the <a href="/about/#privacy">about
+              pastebin experience :-). Read more on the <a href="{{ url }}#privacy">about
               lodgeit</a> page. Have fun :-){%- endtrans -%}
             </p>
             <p><a href="javascript:LodgeIt.hideNotification()">{% trans %}hide this notification{% endtrans %}</a></p>