You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by jd...@apache.org on 2013/05/10 18:32:51 UTC

svn commit: r1481082 - in /bloodhound/trunk/bloodhound_theme/bhtheme: htdocs/bloodhound.css templates/bh_list_of_attachments.html templates/bh_ticket.html templates/bh_ticket_box.html templates/bh_ticket_change.html

Author: jdreimann
Date: Fri May 10 16:32:51 2013
New Revision: 1481082

URL: http://svn.apache.org/r1481082
Log:
Fixes for #520 - a bunch of small changes to the ticket page.

Modified:
    bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
    bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_list_of_attachments.html
    bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
    bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html
    bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1481082&r1=1481081&r2=1481082&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css Fri May 10 16:32:51 2013
@@ -1133,6 +1133,29 @@ table.wiki th {
 
 /* @end */
 
+.lastmod {
+  font-size: 90%;
+  color: rgb(80, 80, 80);
+  font-style: italic;
+}
+
+.description {
+  margin-bottom: 20px;
+}
+
+.attachments .attachment-info {
+  font-weight: normal;
+}
+
+.ticket-properties td{
+  border: none;
+}
+
+.ticket-properties td:first-child{
+  text-align: right;
+  font-weight: bold;
+}
+
 #trac-add-comment textarea#comment{
  border-radius: 8px 8px 8px 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_list_of_attachments.html
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_list_of_attachments.html?rev=1481082&r1=1481081&r2=1481082&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_list_of_attachments.html (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_list_of_attachments.html Fri May 10 16:32:51 2013
@@ -34,12 +34,12 @@ Arguments:
                add_button_title = value_of('add_button_title', None);
                foldable = value_of('foldable', False)" py:strip="">
   <py:def function="show_one_attachment(attachment)">
-    <i class="icon-file"></i>
+    <a href="${url_of(attachment.resource, format='raw')}" class="trac-rawlink" title="Download"></a>
     <i18n:msg params="file, size, author, date">
       <a href="${url_of(attachment.resource)}" title="View attachment">${attachment.filename
-        }</a><a href="${url_of(attachment.resource, format='raw')}" class="trac-rawlink" title="Download"></a>
-       (<span title="${_('%(size)s bytes', size=attachment.size)}">${pretty_size(attachment.size)}</span>) -
-      added by <em>${authorinfo(attachment.author)}</em> ${pretty_dateinfo(attachment.date)}.
+        }</a>
+       <span class="attachment-info">(<span title="${_('%(size)s bytes', size=attachment.size)}">${pretty_size(attachment.size)}</span>) -
+      added by <em>${authorinfo(attachment.author)}</em> ${pretty_dateinfo(attachment.date)}.</span>
     </i18n:msg>
   </py:def>
   <py:if test="alist.attachments or alist.can_create">
@@ -62,7 +62,7 @@ Arguments:
         </div>
       </py:when>
       <py:when test="not compact">
-        <h2 class="${'foldable' if foldable else None}">Attachments</h2>
+        <h3 id="comment:attachments">Attachments</h3>
         <div py:if="alist.attachments or alist.can_create" class="attachments">
           <dl py:if="alist.attachments" class="attachments">
             <py:for each="attachment in alist.attachments">
@@ -72,11 +72,7 @@ Arguments:
               </dd>
             </py:for>
           </dl>
-          <p py:if="alist.attachments and alist.download_href">
-            <span class="label label-info">Download</span>
-            all attachments as: <a rel="nofollow" href="$alist.download_href">.zip</a>
-          </p>
-          <xi:include href="bh_attach_file_form.html"/>
+          <xi:include href="bh_attach_file_form.html"/><span py:if="alist.attachments and alist.download_href" style="margin-left: 10px;">Download all attachments as: <a rel="nofollow" href="$alist.download_href">.zip</a></span>
         </div>
       </py:when>
     </div>

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html?rev=1481082&r1=1481081&r2=1481082&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html Fri May 10 16:32:51 2013
@@ -384,27 +384,11 @@
               <!--! ticket details -->
                 <!--! main ticket info -->
                 <div class="properties">
-                  <div class="row">
-                    <div class="span4">
-                      <div class="row">
-                        <div class="span2">
-                          <h5 id="h_reporter">
-                            <span class="hidden-phone pull-right">Reporter:</span>
-                            <span class="visible-phone">Reporter:</span>
-                          </h5>
-                        </div>
-                        <div class="span2" id="vc-reporter" data-edit="${'inplace' if only_for_admin else None}">
-                          ${reporter_link if defined('reporter_link') else authorinfo(ticket.reporter)}
-                        </div>
-                      </div>
-                    </div>
-                  </div>
-                </div>
-
-                <div>
+                  <table class="ticket-properties">
                   <xi:include href="bh_ticket_box.html"
                       py:with="preview_mode = change_preview.fields if change_preview else False;
                           colcount = 4 if bhdb else 6"/>
+                  </table>
                 </div>
                 <div id="dummy-vc-summary" style="display: none"/>
 

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html?rev=1481082&r1=1481081&r2=1481082&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_box.html Fri May 10 16:32:51 2013
@@ -36,24 +36,17 @@ Arguments:
      xmlns:i18n="http://genshi.edgewall.org/i18n"
      id="ticket" class="${'ticketdraft' if preview_mode else None}">
 
+
   <py:def function="render_fields_row(fields_row, fontsize, is_inline)">
     <py:for each="idx, field in enumerate(fields_row)">
       <py:if test="field is not None">
-        <div class="span4">
-          <div class="row">
-            <div class="span2">
-              <h5 id="${'h_' + field.name if field else None}">
-                <py:if test="field">
-                  <span class="hidden-phone pull-right">
-                    <i18n:msg params="field">${field.label or field.name}:</i18n:msg>
-                  </span>
-                  <span class="visible-phone">
-                    <i18n:msg params="field">${field.label or field.name}:</i18n:msg>
-                  </span>
-                </py:if>
-              </h5>
-            </div>
-            <div class="span2" data-edit="${'inplace' if (field and field.name not in ('status', 'product')) else None}" id="${'vc-' + field.name if field else None}">
+          <tr>
+            <td id="${'h_' + field.name if field else None}">
+              <py:if test="field">
+                  <i18n:msg params="field">${field.label or field.name}:</i18n:msg>
+              </py:if>
+            </td>
+            <td data-edit="${'inplace' if (field and field.name not in ('status', 'product')) else None}" id="${'vc-' + field.name if field else None}">
               <py:if test="field">
                 <py:choose test="">
                   <py:when test="'rendered' in field">${field.rendered}</py:when>
@@ -72,12 +65,28 @@ Arguments:
                   </ul>
                 </div>
               </py:if>
-            </div>
-          </div>
-        </div>
+            </td>
+          </tr>
       </py:if>
     </py:for>
   </py:def>
+  <tr>
+    <td id="h_reporter">
+        Reporter:
+    </td>
+    <td id="vc-reporter" data-edit="${'inplace' if only_for_admin else None}">
+      ${reporter_link if defined('reporter_link') else authorinfo(ticket.reporter)}
+    </td>
+  </tr>
+  <!--! use a placeholder if it's a new ticket -->
+   <py:for each="field in fields">
+      <py:if test="field.name == 'keywords'">
+        <tr title="Keywords" class="keywords">
+          <td>Keywords:</td>
+          <td><span data-edit="${'inplace' if can_modify or can_edit or can_create else None}" id="vc-keywords">${field.rendered}</span></td>
+        </tr>
+      </py:if>
+    </py:for>
 
 
   <!--!
@@ -103,27 +112,10 @@ Arguments:
 
     <div class="clearboth"></div>
 
-    <!--! use a placeholder if it's a new ticket -->
-    <py:for each="field in fields">
-      <py:if test="field.name == 'keywords'">
-        <div title="Keywords" class="keywords">
-          <i class="icon-tags"></i>
-          <span data-edit="${'inplace' if can_modify or can_edit or can_create else None}" id="vc-keywords">${field.rendered}</span>
-        </div>
-      </py:if>
-    </py:for>
-
-
     <div class="description">
-      <h5 id="comment:description">
+      <h3 id="comment:description">
         Description
-        <span py:if="description_change" class="lastmod pull-right"
-            title="$description_change.date">
-          <i18n:msg params="author">(last modified by ${authorinfo(description_change.author)})</i18n:msg>
-          (<a href="${href.ticket(ticket.id, action='diff', version=description_change.cnum)}">diff</a>)
-        </span>
-      </h5>
-
+      </h3>
         <!--! Quote the description (only for existing tickets) -->
         <div class="pull-right">
           <form py:if="ticket.exists and ticket.description and can_append"
@@ -138,8 +130,12 @@ Arguments:
           <py:if test="ticket.description">
             ${wiki_to_html(context, ticket.description, escape_newlines=preserve_newlines)}
           </py:if>
-      </div>
+        </div>
       <br py:if="not ticket.description" style="clear: both" />
+      <span py:if="description_change" class="lastmod" title="$description_change.date">
+        <i18n:msg params="author">Last modified by ${authorinfo(description_change.author)}</i18n:msg>
+        (<a href="${href.ticket(ticket.id, action='diff', version=description_change.cnum)}">diff</a>)
+      </span>
     </div>
 
     <div class="properties">

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html?rev=1481082&r1=1481081&r2=1481082&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_change.html Fri May 10 16:32:51 2013
@@ -112,13 +112,13 @@ Arguments:
           </div>
         </py:choose>
         <div py:if="not show_editor and len(change.comment_history) > 1" py:choose=""
-             class="trac-lastedit ${'trac-shade' if comment_version != max_version else None} alert alert-success">
+             class="trac-lastedit ${'trac-shade' if comment_version != max_version else None} lastmod">
           <i18n:msg params="version, date, author" py:when="comment_version != max_version">
               Version ${comment_version}, edited ${pretty_dateinfo(change.comment_history[comment_version].date)}
               by ${authorinfo(change.comment_history[comment_version].author)}
           </i18n:msg>
           <i18n:msg params="date, author" py:otherwise="">
-              Last edited ${pretty_dateinfo(change.comment_history[comment_version].date)}
+              Last modified ${pretty_dateinfo(change.comment_history[comment_version].date)}
               by ${authorinfo(change.comment_history[comment_version].author)}
           </i18n:msg>
           <py:if test="comment_version > 0">