Commits

Shitiz Garg committed b766523

Slight improvement in diff presentation, also removed trailing dash for global feed

Comments (0)

Files changed (3)

MoinMoin/apps/feed/views.py

         content = None
         cid = None
     if content is None:
-        title = u"{0} - {1}".format(app.cfg.sitename, item_name)
+        if not item_name:
+            title = u"{0}".format(app.cfg.sitename)
+        else:
+            title = u"{0} - {1}".format(app.cfg.sitename, item_name)
         feed = AtomFeed(title=title, feed_url=request.url, url=request.host_url)
         query = Term(WIKINAME, app.cfg.interwikiname)
         if item_name:

MoinMoin/templates/atom.html

 {%- elif get == 'comment_cont_merge' -%}
     <p style="font-size: 14px">...{{ comment }}</p> <br /> {{ content }}
 {%- elif get == 'first_revision' -%}
-    <p style="font-style: italic;">{{ _('First revision') }}</p><br />{{ content }}
+    <p><i>{{ _('First revision') }}</i></p><br />{{ content }}
 {%- endif -%}

MoinMoin/templates/diff_text_atom.html

         <td class="moin-diff-header-line" style="width: 3%;">
         </td>
         <td class="moin-diff-header" style="width: 47%;">
-            {{ show_meta(oldrev) }}
+            <strong>{{ show_meta(oldrev) }}</strong>
         </td>
         <td class="moin-diff-header-line" style="width: 3%;">
         </td>
         <td class="moin-diff-header" style="width: 47%;">
-            {{ show_meta(newrev) }}
+            <strong>{{ show_meta(newrev) }}</strong>
         </td>    </tr>
     {% for llineno, lcontent, rlineno, rcontent in diffs %}
         <tr>
             <td style="vertical-align: top;"><a href="#{{ llineno }}">{{ llineno }}:</a></td>
-            <td class="moin-diff-removed" style="vertical-align: top; background-color: lightYellow; word-wrap: break-word;">{{ lcontent }}</td>
+            <td class="moin-diff-removed" style="vertical-align: top; background-color: lightYellow; word-wrap: break-word;"><blockquote>{{ lcontent }}</blockquote></td>
             <td style="vertical-align: top;"><a href="#{{ rlineno }}">{{ rlineno }}:</a></td>
-            <td class="moin-diff-added" style="vertical-align: top; background-color: #E0FFE0; word-wrap: break-word;">{{ rcontent }}</td>
+            <td class="moin-diff-added" style="vertical-align: top; background-color: #E0FFE0; word-wrap: break-word;"><blockquote>{{ rcontent }}</blockquote></td>
         </tr>
     {% endfor %}
 </table>