Commits

Anonymous committed 66d43fc

Fixed info header table
Fixed Table code on preview code file or diffs
Improved style file upload Progress bar
Added input hidden of realm and id
Added error template page

Comments (0)

Files changed (5)

zurbtheme/htdocs/css/zurb_browser.css

     display: inline !important;
 }
 
+#info th {
+    font-weight: bold;
+    text-align: left;
+}
+
+#info th, #info td {
+    font-size: 85%;
+    padding: 2px 0.5em;
+    vertical-align: top;
+}
 
 #info {
     margin-bottom: 0;

zurbtheme/htdocs/zurb.css

 
 a:hover,
 a:focus, .side-nav li a:hover, .side-nav li a:focus {
-    color: #16C0EA;
+    /*color: #16C0EA;*/
 }
 
 #changelog a:hover {
     border: 1px solid #e1e1e8;
 }
 
+table.code tbody th {
+    background: none repeat scroll 0 0 #EEEEDD;
+    color: #888866;
+    font-weight: normal;
+    padding: 0 0.5em;
+    text-align: right;
+    vertical-align: top;
+}
+
+table.code th {
+    border-bottom: 1px solid #999988;
+    border-right: 1px solid #D7D7D7;
+    font-size: 11px;
+}
+
 pre {
     display: block;
     padding: 9.5px;
 
 .um_profile_fields .field LABEL {
     margin-top: 10px;
+}
+
+.fileinput-button input {
+    cursor: pointer !important;
+    direction: ltr;
+    font-size: 23px;
+    margin: 0;
+    opacity: 0;
+    position: absolute;
+    right: 0;
+    top: 0;
+}
+
+input[type="file"] {
+    display: block;
+}
+
+.btn-success {
+    background-color: #5CB85C;
+    border-color: #4CAE4C;
+    color: #FFFFFF;
+}
+
+.progress {
+    background-color: #F5F5F5;
+    border-radius: 4px 4px 4px 4px;
+    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
+    height: 20px;
+    margin-bottom: 20px;
+    overflow: hidden;
+}
+
+.progress-bar-success {
+    background-color: #5CB85C;
+}
+
+.fileinput-button input {
+    cursor: pointer !important;
+    direction: ltr;
+    font-size: 23px;
+    margin: 0;
+    opacity: 0;
+    position: absolute !important;
+    right: 0 !important;
+    top: 0 !important;
 }

zurbtheme/templates/zurb_attach_file_form.html

 Arguments:
 - alist: the data for the list of attachments
 - add_button_title=None: the title of the "Attach" button
-- bh_attach_advanced: toggle jQuery File Upload form on/off
+- zurb_attach_advanced: toggle jQuery File Upload form on/off
 -->
 
-<?python
-from trac.web import chrome as _chrome
-
-    #if (zurb_attach_advanced and advanced):
-    # _chrome.add_stylesheet(req, 'dashboard/css/bootstrap.css')
-    #_chrome.add_stylesheet(req, 'theme/css/jquery.fileupload-ui.css')
-    #_chrome.add_script(req, 'common/js/jquery-ui.js')
-    #_chrome.add_script(req, 'dashboard/js/tmpl.js')
-    #_chrome.add_script(req, 'theme/js/load-image.js')
-    #_chrome.add_script(req, 'theme/js/canvas-to-blob.js')
-    #_chrome.add_script(req, 'dashboard/js/jquery.iframe-transport.js')
-    #_chrome.add_script(req, 'theme/js/jquery.fileupload.js')
-    #_chrome.add_script(req, 'theme/js/jquery.fileupload-fp.js')
-    #_chrome.add_script(req, 'theme/js/jquery.fileupload-ui.js')
-?>
-
 <div xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
     xmlns:xi="http://www.w3.org/2001/XInclude"
         <input type="hidden" name="action" value="new" />
         <input type="submit" class="button tiny" name="attachfilebutton" value="${value_of('add_button_title', None) or _('Attach file')}" />
     </form>
-    <py:if test="advanced and zurb_attach_advanced and alist.can_create and
+    <py:if test="zurb_attach_advanced and alist.can_create and
  	        context.resource and context.resource.realm and context.resource.id">
     <!--! The file upload form used as target for the file upload widget -->
         <script type="text/x-tmpl" id="tmpl-attach-advanced">
                         </small>
                     </label>
                     {% } %}
+                    <input type="hidden" name="realm" value="${context.resource.realm}" />
+                    <input type="hidden" name="id" value="${context.resource.id}" />
+
                     <div class="row">
                     <div class="row large-7 start input-append">
                         <div class="large-5 small-9 columns">

zurbtheme/templates/zurb_ticket.html

 
         <!--! do not show attachments for old versions of this ticket or for new tickets -->
         <py:if test="not version and version != 0 and ticket.exists">
-          <xi:include href="zurb_list_of_attachments.html"
-                      py:with="alist = attachments; foldable = True; "/>
+          <xi:include href="zurb_list_of_attachments.html" py:with="alist = attachments; foldable = True;"/>
         </py:if>
 
         <div style="${'display: none' if not changes else None}">

zurbtheme/theme.py

         'history_view.html' : ('zurb_history_view.html', None),
         'timeline.html' : ('zurb_timeline.html', None),
         'roadmap.html': ('zurb_roadmap.html', None),
+        'error.html': ('zurb_error.html', None),
 
         #Differences
         'diff_view.html' : ('zurb_diff_view.html', None),