zhangchunlin avatar zhangchunlin committed 590d99b

table table-striped,div class="container"

Comments (0)

Files changed (3)

apps/autobuild/templates/builds_view.html

 {{end}}
 
 {{block content}}
+<div class="container">
 {{
 table_begin = '''
-<table class="table">
+<table class="table table-striped">
 <tbody>
 <tr>
 <th>board</th><th>branch</th><th>build type</th><th>manifest xml</th><th>file download</th>
         c+=1
     pass
 pass
-out.write('<br>'*2, escape=False)
+out.write('<br />'*2, escape=False)
 
 c = 1
 for d in view_data:
         else:
             h = 1
         pass
-        out.write('<a name="time%d"><h%d>%s(%d)</h%d><hr></a>'%(c,h,d["name"],len(d["list"]),h), escape=False)
+        out.write('<a name="time%d"><h%d>%s(%d)</h%d><hr /></a>'%(c,h,d["name"],len(d["list"]),h), escape=False)
         
         out.write(table_begin, escape=False)
         for f in d["list"]:
             out.write("<td>%s.xml</td>"%(f["manifest"]), escape=False)
             s = ""
             if f.has_key("title"):
-                s+="%s<br>"%(f["title"])
+                s+="%s<br />"%(f["title"])
                 pass
             for item in f["download"]:
                 s+='<a href="/builds_dl/%s">%s</a>(%s) '%(item["path"],item["fn"],item["size"])
             out.write("</tr>\n", escape=False)
         pass
         out.write(table_end, escape=False)
-        out.write("<br>\n", escape=False)
+        out.write("<br />\n", escape=False)
         c+=1
     pass
 pass
 
-out.write("<hr>unkown files:<br>", escape=False)
+out.write("<hr />unkown files:<br />", escape=False)
 
 for item in unknown_files:
-    out.write("%s<br>"%(item), escape=False)
+    out.write("%s<br />"%(item), escape=False)
     pass
 
-out.write("<hr>", escape=False)
+out.write("<hr />", escape=False)
 
 out.write(df,escape=False)
 
 }}
-{{end}}
+</div>
+{{end content}}
 
 {{block footer}}{{end}}

apps/autobuild/templates/navi.html

 </head>
 <body>
 
-<a href ="{{<<urls.BUILDBOT_URL}}" target ="showframe">buildbot</a><br>
-<a href ="{{<<urls.BUILDS_URL}}" target ="showframe">builds</a><br>
-<a href ="{{<<urls.CHANGELOG_URL}}" target ="showframe">change log</a><br>
-<a href ="{{<<urls.MAILMAN_URL}}" target ="showframe">mail list</a><br>
+<a href ="{{<<urls.BUILDBOT_URL}}" target ="showframe">buildbot</a><br />
+<a href ="{{<<urls.BUILDS_URL}}" target ="showframe">builds</a><br />
+<a href ="{{<<urls.CHANGELOG_URL}}" target ="showframe">change log</a><br />
+<a href ="{{<<urls.MAILMAN_URL}}" target ="showframe">mail list</a><br />
 
 {{
 if exlinks!=None:
-    out.write('<hr>\n', escape=False)
+    out.write('<hr />\n', escape=False)
     for text,link in exlinks:
         if text=="" or link=="":
-            out.write("<hr>\n",escape=False)
+            out.write("<hr />\n",escape=False)
         else:
-            out.write('<a href ="%s" target="_blank">%s</a><br>\n'%(link,text), escape=False)
+            out.write('<a href ="%s" target="_blank">%s</a><br />\n'%(link,text), escape=False)
         pass
     pass
 pass

apps/settings.ini

     'uliweb.contrib.i18n',
     'uliweb.contrib.session',
     'autobuild',
-    ]
+    ]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.