changeset 2685:19747e4214f4

Added link to +tickets view in the navbar and also now summary/shortened fqname is shown in Global History for tickets/nameless items
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Fri, 01 Aug 2014 17:56:29 +0530
parents 44a288038e11
children 5cfec4b90170
files MoinMoin/config/default.py MoinMoin/templates/global_history.html
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/default.py	Fri Aug 01 17:54:11 2014 +0530
+++ b/MoinMoin/config/default.py	Fri Aug 01 17:56:29 2014 +0530
@@ -370,6 +370,7 @@
             ('wikilink', 'frontend.global_tags', dict(), L_('Tags'), L_('Global Tags Index')),
             ('wikilink', 'admin.index_user', dict(), L_('User'), L_('User')),
             ('wikilink', 'admin.index', dict(), L_('Admin'), L_('Administration & Docs')),
+            ('wikilink', 'frontend.tickets', dict(), L_('Tickets'), L_('List of Tickets')),
         ], 'Data to create the navi_bar from. Users can add more items in their quick links in user preferences. You need to configure a list of tuples (css_class, endpoint, args, label, title). Use L_() for translating. [list of tuples]'),
 
         ('theme_default', u'basic', "Default theme."),
--- a/MoinMoin/templates/global_history.html	Fri Aug 01 17:54:11 2014 +0530
+++ b/MoinMoin/templates/global_history.html	Fri Aug 01 17:56:29 2014 +0530
@@ -34,7 +34,17 @@
                                 {%- endif %}
                             </td>
                             <td class="moin-history-time">{{ meta.mtime|timeformat }}</td>
-                            <td class="moin-history-item"><a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.fqname) }}" title="{{ meta.contenttype }}">{{ meta.name|join(' | ') }}</a></td>
+                            <td class="moin-history-item">
+                                <a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.fqname) }}" title="{{ meta.contenttype }}">
+                                    {% if meta.name %}
+                                        {{ meta.name|join(' | ') }}
+                                    {% elif meta.summary %}
+                                        {{ meta.summary }}
+                                    {% else %}
+                                        {{ rev.fqname|shorten_fqname }}
+                                    {% endif %}
+                                </a>
+                            </td>
                         </tr>
                     {% endfor %}
                     </table>