Skip to content

Commit 58f7343

Browse files
committed
Use bootstrap classes for displaying tables; bug.item is almost table free and uses bootstrap form classes and markup
1 parent e59be91 commit 58f7343

File tree

7 files changed

+320
-283
lines changed

7 files changed

+320
-283
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ def history(self, direction='descending', dre=re.compile('^\d+$'),
10491049
if direction == 'ascending':
10501050
l.reverse()
10511051

1052-
l[0:0] = ['<table class="history">'
1052+
l[0:0] = ['<table class="history table table-condensed table-striped">'
10531053
'<tr><th colspan="4" class="header">',
10541054
self._('History'),
10551055
'</th></tr><tr>',

share/roundup/templates/responsive/html/_generic.help-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</tr>
1515
</table>
1616
<form>
17-
<table class="classhelp"
17+
<table class="table"
1818
tal:define="props python:request.form['properties'].value.split(',');
1919
legend templates/help/macros/legend;">
2020
<thead>

share/roundup/templates/responsive/html/_generic.help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<tal:block metal:fill-slot="content">
33
<tal:block tal:condition="python:request.form.has_key('property')">
44
<form name="frm_help" action="#">
5-
<table class="classhelp"
5+
<table class="table"
66
tal:define="props python:request.form['properties'].value.split(',');
77
legend templates/help/macros/legend;
88
navigation templates/help/macros/batch_navi;

share/roundup/templates/responsive/html/bug.item.html

Lines changed: 308 additions & 277 deletions
Large diffs are not rendered by default.

share/roundup/templates/responsive/html/file.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
i18n:translate="">List of files</span>
66
<td class="content" metal:fill-slot="content">
77

8-
<table class="otherinfo" tal:define="batch request/batch">
8+
<table class="table table-condensed" tal:define="batch request/batch">
99
<tr><th style="padding-right: 10" i18n:translate="">Download</th>
1010
<th style="padding-right: 10" i18n:translate="">Description</th>
1111
<th style="padding-right: 10" i18n:translate="">Content Type</th>

share/roundup/templates/responsive/html/page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
body { padding-top: 80px; padding-bottom: 40px; }
1616
</style>
1717
<link rel="stylesheet" href="@@file/bootstrap-responsive.min.css">
18+
<link rel="stylesheet" href="@@file/style.css">
1819
<script tal:replace="structure request/base_javascript"></script>
1920
<metal:x define-slot="more-javascript" />
2021
</head>
@@ -52,7 +53,7 @@
5253
</div> <!-- container -->
5354
</div> <!-- navbar-inner -->
5455
</div> <!-- navbar -->
55-
<div class='container'>
56+
<div class='container-fluid'>
5657
<div class='row-fluid'>
5758
<div class="span3 well">
5859
<ul tal:condition="python:request.user.hasPermission('View', 'bug')" class='nav nav-list'>
@@ -246,7 +247,7 @@
246247
</div>
247248
</div> <!-- well -->
248249
<div class="span8">
249-
<h1 id="breadcrumb"><span metal:define-slot="body_title">body title</span></h1>
250+
<h1><span metal:define-slot="body_title">body title</span></h1>
250251
<p tal:condition="options/error_message | nothing" class="alert alert-error"
251252
tal:repeat="m options/error_message"
252253
tal:content="structure string:$m <br/ > " />
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.vspace-one { margin-top: 1em; }
2+
.vspace-two { margin-top: 2em; }
3+
.vspace-three { margin-top: 3em; }
4+
.vspace-four { margin-top: 4em; }
5+
.vspace-five { margin-top: 5em; }

0 commit comments

Comments
 (0)