Commits

Steve Losh committed 3f777ce

Tags. Oh god.

  • Participants
  • Parent commits ce5ed87

Comments (0)

Files changed (6)

File letterpress/branchtags.tmpl

+{% for branch in branches %}
+    <span class="branchtag" title="{{ branch.name }}">{{ branch.name }}</span>
+{% endfor %}

File letterpress/inbranchtag.tmpl

+{% for branch in inbranch %}
+    <span class="inbranchtag" title="{{ branch.name }}">{{ branch.name }}</span>
+{% endfor %}

File letterpress/map

   </tr>'
 fileellipses = '...'
 changelogentry = changelogentry.tmpl
-shortlogentry = shortlogentry.tmpl
+shortlogentry = jinja2:shortlogentry.tmpl
 searchentry = changelogentry.tmpl
 changeset = changeset.tmpl
 manifest = manifest.tmpl
   </tr>'
 shortlog = jinja2:shortlog.tmpl
 graph = graph.tmpl
-tagtag = '<span class="tagtag" title="{name}">{name}</span> '
-branchtag = '<span class="branchtag" title="{name}">{name}</span> '
-inbranchtag = '<span class="inbranchtag" title="{name}">{name}</span> '
+tagtags = jinja2:tagtags.tmpl
+branchtags = jinja2:branchtags.tmpl
+inbranchtag = jinja2:inbranchtag.tmpl
 filelogentry = '
   <tr class="parity{parity}">
     <td class="age"><i>{date|age} ago</i></td>

File letterpress/shortlogentry.tmpl

-<tr class="parity{parity}">
-    <td class="age">{date|age} ago</td>
-    <td class="user">{author|person}</td>
+<tr class="parity{{ parity }}">
+    <td class="age">{{ date|age }} ago</td>
+    <td class="user">{{ author|person }}</td>
     <td class="summary">
-        <a class="list" href="{url}rev/{node|short}{% include "urlparams" %}">
-            {desc|strip|firstline|escape|nonempty}
-            <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span>
+        <a class="list" href="{{ url }}rev/{{ node|short }}{% include "urlparams" %}">
+            {{ desc|strip|firstline|escape|nonempty }}
+            <span class="logtags">{% include "inbranchtag" %}{% include "branchtags" %}{% include "tagtags" %}</span>
         </a>
     </td>
     <td class="links">
-        <a href="{url}rev/{node|short}{% include "urlparams" %}">changeset</a>
+        <a href="{{ url }}rev/{{ node|short }}{% include "urlparams" %}">changeset</a>
         &ndash;
-        <a href="{url}file/{node|short}{% include "urlparams" %}">files</a>
+        <a href="{{ url }}file/{{ node|short }}{% include "urlparams" %}">files</a>
     </td>
 </tr>

File letterpress/summary.tmpl

 
 <h2><a href="{{ url }}shortlog{% include "urlparams" %}">Recent Changes</a></h2>
 <table class="shortlog">
-    {{ shortlog }}
+    {% for item in shortlog() %}
+        <!-- oh my god seriously what the hell is this? -->
+        {% for fail in item %}
+            {% for chunk in fail %}
+                {{ chunk }}
+            {% endfor %}
+        {% endfor %}
+    {% endfor %}
     <tr class="more">
         <td colspan="4">
             <a class="list" href="{{ url }}shortlog{% include "urlparams" %}">more&hellip;</a>
     <div class="split-left">
         <h2><a href="{{ url }}tags{% include "urlparams" %}">Tags</a></h2>
         <table class="tags">
-            {% for tagentry in tags() %}
-                {% for chunk in tagentry %}
-                    <!-- oh my god wtf is this -->
+            {% for tag in tags() %}
+                {% for chunk in tag %}
+                    <!-- FFFFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU -->
                     {{ chunk }}
                 {% endfor %}
             {% endfor %}

File letterpress/tagtags.tmpl

+{% for tag in tags %}
+    <span class="tagtag" title="{{ tag.name }}">{{ tag.name }}</span>
+{% endfor %}