##// END OF EJS Templates
style: various minor-ish markup changes, preparing for Bootstrap
Mads Kiilerich -
r6611:9d34bea3 default
parent child Browse files
Show More
@@ -1980,7 +1980,7 b' tr.out-of-range > td.mid > .message > a '
1980 text-align: left;
1980 text-align: left;
1981 }
1981 }
1982
1982
1983 #graph_content .container .checkbox {
1983 #graph_content .container .checkbox-column {
1984 width: 14px;
1984 width: 14px;
1985 font-size: 0.85em;
1985 font-size: 0.85em;
1986 }
1986 }
@@ -2951,6 +2951,10 b' input[disabled].btn,'
2951 border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
2951 border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
2952 }
2952 }
2953
2953
2954 .text-danger {
2955 color: #a94442;
2956 }
2957
2954 label.disabled {
2958 label.disabled {
2955 color: #aaa !important;
2959 color: #aaa !important;
2956 }
2960 }
@@ -3740,6 +3744,7 b' form.comment-inline-form {'
3740 color: #666;
3744 color: #666;
3741 }
3745 }
3742
3746
3747 input.status_change_checkbox,
3743 input.status_change_radio {
3748 input.status_change_radio {
3744 margin: 2px 0 5px 15px;
3749 margin: 2px 0 5px 15px;
3745 vertical-align: middle;
3750 vertical-align: middle;
@@ -3851,6 +3856,15 b' span.pr-closed-tag {'
3851 margin: 5px 0;
3856 margin: 5px 0;
3852 }
3857 }
3853
3858
3859 #pr-summary > .pr-not-edit {
3860 min-height: 50px !important;
3861 }
3862
3863 #pr-edit-btn {
3864 margin: 20px 0 0 !important;
3865 position: absolute;
3866 }
3867
3854 /****
3868 /****
3855 PERMS
3869 PERMS
3856 *****/
3870 *****/
@@ -4245,6 +4259,17 b' ul.user_group_member li {'
4245 clear: both;
4259 clear: both;
4246 }
4260 }
4247
4261
4262 select.pull-right-auto-width {
4263 float: right;
4264 width: auto;
4265 }
4266
4267 span.expand-available {
4268 display: block;
4269 overflow: hidden;
4270 padding-right: 15px;
4271 }
4272
4248 .tooltip {
4273 .tooltip {
4249 position: absolute;
4274 position: absolute;
4250 z-index: 1070;
4275 z-index: 1070;
@@ -22,10 +22,8 b''
22 <div class="panel-heading clearfix">
22 <div class="panel-heading clearfix">
23 ${self.breadcrumbs()}
23 ${self.breadcrumbs()}
24 </div>
24 </div>
25 <div class="panel-body">
25 <div id="user_log" class="panel-body">
26 <div id="user_log">
27 <%include file='admin_log.html'/>
26 <%include file='admin_log.html'/>
28 </div>
29 </div>
27 </div>
30 </div>
28 </div>
31
29
@@ -34,7 +34,7 b''
34 </div>
34 </div>
35 </div>
35 </div>
36 <div class="form-group">
36 <div class="form-group">
37 <label>${_('Available built-in plugins')}</label>
37 <label class="control-label">${_('Available built-in plugins')}</label>
38 <div>
38 <div>
39 <ul class="list-group">
39 <ul class="list-group">
40 %for plugin_path in c.available_plugins:
40 %for plugin_path in c.available_plugins:
@@ -42,8 +42,10 b''
42 </div>
42 </div>
43 <div id="body" class="panel panel-default">
43 <div id="body" class="panel panel-default">
44 <div class="panel-heading">
44 <div class="panel-heading">
45 ${h.text('filename', size=30, placeholder=_('Name this gist ...'), class_='form-control')}
45 <select class="form-control pull-right-auto-width" id="mimetype" name="mimetype"></select>
46 <select class="form-control" id="mimetype" name="mimetype"></select>
46 <span class="expand-available">
47 ${h.text('filename', size=30, placeholder=_('Name this gist ...'), class_='form-control auto-width')}
48 </span>
47 </div>
49 </div>
48 <div class="panel-body no-padding">
50 <div class="panel-body no-padding">
49 <textarea id="editor" name="content"></textarea>
51 <textarea id="editor" name="content"></textarea>
@@ -1,28 +1,27 b''
1 <h4>${_('Built-in Mercurial Hooks (Read-Only)')}</h4>
2 <div class="form">
1 <div class="form">
3 <div class="form-horizontal">
2 <div class="form-horizontal">
3 <div class="form-group">
4 <h4>${_('Built-in Mercurial Hooks (Read-Only)')}</h4>
4 % for hook in c.hooks:
5 % for hook in c.hooks:
5 <% input_id = hook.ui_key.replace('.', '_') %>
6 <% input_id = hook.ui_key.replace('.', '_') %>
6 <div class="form-group">
7 <label class="control-label" for="${input_id}">${hook.ui_key}</label>
7 <label class="control-label" for="${input_id}">${hook.ui_key}</label>
8 <div style="margin-left:280px">
8 <div style="margin-left:280px">
9 ${h.text(hook.ui_key,hook.ui_value,id=input_id,size=60,readonly="readonly",class_='form-control')}
9 ${h.text(hook.ui_key,hook.ui_value,id=input_id,size=60,readonly="readonly",class_='form-control')}
10 </div>
10 </div>
11 </div>
12 % endfor
11 % endfor
12 <span class="help-block">${_('Hooks can be used to trigger actions on certain events such as push / pull. They can trigger Python functions or external applications.')}</span>
13 </div>
13 </div>
14 </div>
14 <span class="help-block">${_('Hooks can be used to trigger actions on certain events such as push / pull. They can trigger Python functions or external applications.')}</span>
15 </div>
15 </div>
16
16
17 % if c.visual.allow_custom_hooks_settings:
17 % if c.visual.allow_custom_hooks_settings:
18 <h4>${_('Custom Hooks')}</h4>
19 ${h.form(url('admin_settings_hooks'), method='post')}
18 ${h.form(url('admin_settings_hooks'), method='post')}
20 <div class="form">
19 <div class="form">
21 <div class="form-horizontal">
20 <div class="form-horizontal">
22
21 <div class="form-group form-inline" id="${'id%s' % hook.ui_id }">
22 <h4>${_('Custom Hooks')}</h4>
23 %for hook in c.custom_hooks:
23 %for hook in c.custom_hooks:
24 <% input_id = hook.ui_key.replace('.', '_') %>
24 <% input_id = hook.ui_key.replace('.', '_') %>
25 <div class="form-group form-inline" id="${'id%s' % hook.ui_id }">
26 <label class="control-label" for="${input_id}">${hook.ui_key}</label>
25 <label class="control-label" for="${input_id}">${hook.ui_key}</label>
27 <div style="margin-left:280px">
26 <div style="margin-left:280px">
28 ${h.hidden('hook_ui_key',hook.ui_key,id='hook_ui_key_'+input_id)}
27 ${h.hidden('hook_ui_key',hook.ui_key,id='hook_ui_key_'+input_id)}
@@ -34,12 +33,12 b''
34 ${_('Delete')}
33 ${_('Delete')}
35 </span>
34 </span>
36 </div>
35 </div>
37 </div>
38 %endfor
36 %endfor
37 </div>
39
38
40 <div class="form-group form-inline">
39 <div class="form-group form-inline">
41 <label>
40 <label>
42 ${h.text('new_hook_ui_key',size=20,class_='form-control')}
41 ${h.text('new_hook_ui_key',size=15,class_='form-control')}
43 </label>
42 </label>
44 <div style="margin-left:280px">
43 <div style="margin-left:280px">
45 ${h.text('new_hook_ui_value',size=60,class_='form-control')}
44 ${h.text('new_hook_ui_value',size=60,class_='form-control')}
@@ -4,7 +4,7 b''
4
4
5 <%
5 <%
6 elems = [
6 elems = [
7 (_('Kallithea version'), h.literal('%s <b><span style="color:#036185; text-decoration: underline;cursor: pointer" id="check_for_update" >%s</span></b>' % (c.kallithea_version, _('Check for updates'))), ''),
7 (_('Kallithea version'), h.literal('%s <b><span style="display:none; color:#036185; text-decoration: underline;cursor: pointer" id="check_for_update" >%s</span></b>' % (c.kallithea_version, _('Check for updates'))), ''),
8 (_('Kallithea configuration file'), c.ini['__file__'], ''),
8 (_('Kallithea configuration file'), c.ini['__file__'], ''),
9 (_('Python version'), c.py_version, ''),
9 (_('Python version'), c.py_version, ''),
10 (_('Platform'), c.platform, ''),
10 (_('Platform'), c.platform, ''),
@@ -92,10 +92,12 b''
92 <label class="control-label" for="stylify_metatags">${_('Meta Tagging')}:</label>
92 <label class="control-label" for="stylify_metatags">${_('Meta Tagging')}:</label>
93 <div>
93 <div>
94 <div class="checkbox">
94 <div class="checkbox">
95 ${h.checkbox('stylify_metatags','True')}
95 <label>
96 ${h.checkbox('stylify_metatags','True')}
97 ${_('Parses meta tags from the repository description field and turns them into colored tags.')}
98 </label>
96 </div>
99 </div>
97 <span class="help-block">${_('Parses meta tags from the repository description field and turns them into colored tags.')}</span>
100 <div class="help-block">
98 <div>
99 ${_('Stylify recognised meta tags:')}
101 ${_('Stylify recognised meta tags:')}
100 <ul class="list-unstyled"> <!-- Fix style here -->
102 <ul class="list-unstyled"> <!-- Fix style here -->
101 <li>[featured] <span class="metatag" data-tag="featured">featured</span></li>
103 <li>[featured] <span class="metatag" data-tag="featured">featured</span></li>
@@ -121,7 +121,7 b''
121 <span class="icon-bar"></span>
121 <span class="icon-bar"></span>
122 </button>
122 </button>
123 </div>
123 </div>
124 <ul id="context-pages" class="nav navbar-nav navbar-right navbar-collapse collapse">
124 <ul id="context-pages" class="nav navbar-nav navbar-right">
125 <li class="${'active' if current == 'summary' else ''}" data-context="summary"><a href="${h.url('summary_home', repo_name=c.repo_name)}"><i class="icon-doc-text"></i> ${_('Summary')}</a></li>
125 <li class="${'active' if current == 'summary' else ''}" data-context="summary"><a href="${h.url('summary_home', repo_name=c.repo_name)}"><i class="icon-doc-text"></i> ${_('Summary')}</a></li>
126 %if rev:
126 %if rev:
127 <li class="${'active' if current == 'changelog' else ''}" data-context="changelog"><a href="${h.url('changelog_file_home', repo_name=c.repo_name, revision=rev, f_path='')}"><i class="icon-clock"></i> ${_('Changelog')}</a></li>
127 <li class="${'active' if current == 'changelog' else ''}" data-context="changelog"><a href="${h.url('changelog_file_home', repo_name=c.repo_name, revision=rev, f_path='')}"><i class="icon-clock"></i> ${_('Changelog')}</a></li>
@@ -185,7 +185,7 b''
185 var bcache = {};
185 var bcache = {};
186
186
187 $("#branch_switcher").select2({
187 $("#branch_switcher").select2({
188 placeholder: '<span class="navbar-text"> <i class="icon-exchange"></i> ' + ${h.jshtml(_('Switch To'))} + ' <span class="navbar-caret"></span></span>',
188 placeholder: '<i class="icon-exchange"></i> ' + ${h.jshtml(_('Switch To'))} + ' <span class="navbar-caret"></span>',
189 dropdownAutoWidth: true,
189 dropdownAutoWidth: true,
190 sortResults: prefixFirstSort,
190 sortResults: prefixFirstSort,
191 formatResult: function(obj) {
191 formatResult: function(obj) {
@@ -199,7 +199,7 b''
199 },
199 },
200 escapeMarkup: function(m) {
200 escapeMarkup: function(m) {
201 // don't escape our custom placeholder
201 // don't escape our custom placeholder
202 if (m.substr(0, 25) == '<span class="navbar-text"') {
202 if (m.substr(0, 25) == '<i class="icon-exchange">') {
203 return m;
203 return m;
204 }
204 }
205
205
@@ -449,7 +449,7 b''
449 }
449 }
450
450
451 $("#repo_switcher").select2({
451 $("#repo_switcher").select2({
452 placeholder: '<span class="navbar-text"><i class="icon-database"></i> ' + ${h.jshtml(_('Repositories'))} + ' <span class="navbar-caret"></span></span>',
452 placeholder: '<i class="icon-database"></i> ' + ${h.jshtml(_('Repositories'))} + ' <span class="navbar-caret"></span>',
453 dropdownAutoWidth: true,
453 dropdownAutoWidth: true,
454 sortResults: prefixFirstSort,
454 sortResults: prefixFirstSort,
455 formatResult: format,
455 formatResult: format,
@@ -461,7 +461,7 b''
461 dropdownCssClass: "repo-switcher-dropdown",
461 dropdownCssClass: "repo-switcher-dropdown",
462 escapeMarkup: function(m){
462 escapeMarkup: function(m){
463 // don't escape our custom placeholder
463 // don't escape our custom placeholder
464 if(m.substr(0,55) == '<span class="navbar-text"><i class="icon-database"></i>'){
464 if(m.substr(0,29) == '<i class="icon-database"></i>'){
465 return m;
465 return m;
466 }
466 }
467
467
@@ -73,7 +73,7 b''
73 <tbody>
73 <tbody>
74 %for cnt,cs in enumerate(c.pagination):
74 %for cnt,cs in enumerate(c.pagination):
75 <tr id="chg_${cnt+1}" class="container ${'mergerow' if len(cs.parents) > 1 else ''}">
75 <tr id="chg_${cnt+1}" class="container ${'mergerow' if len(cs.parents) > 1 else ''}">
76 <td class="checkbox">
76 <td class="checkbox-column">
77 %if c.changelog_for_path:
77 %if c.changelog_for_path:
78 ${h.checkbox(cs.raw_id,class_="changeset_range", disabled="disabled")}
78 ${h.checkbox(cs.raw_id,class_="changeset_range", disabled="disabled")}
79 %else:
79 %else:
@@ -85,11 +85,11 b''
85 <div>
85 <div>
86 ${_('Finish pull request')}:
86 ${_('Finish pull request')}:
87 <label class="checkbox-inline">
87 <label class="checkbox-inline">
88 <input id="save_close" type="checkbox" name="save_close">
88 <input id="save_close" type="checkbox" name="save_close" class="status_change_checkbox">
89 ${_("Close")}
89 ${_("Close")}
90 </label>
90 </label>
91 <label class="checkbox-inline">
91 <label class="checkbox-inline">
92 <input id="save_delete" type="checkbox" name="save_delete" value="delete">
92 <input id="save_delete" type="checkbox" name="save_delete" value="delete" class="status_change_checkbox">
93 ${_("Delete")}
93 ${_("Delete")}
94 </label>
94 </label>
95 </div>
95 </div>
@@ -1,5 +1,5 b''
1 ## Changesets table !
1 ## Changesets table !
2 <div class="container">
2 <div>
3 %if not c.cs_ranges:
3 %if not c.cs_ranges:
4 <span class="empty_data">${_('No changesets')}</span>
4 <span class="empty_data">${_('No changesets')}</span>
5 %else:
5 %else:
@@ -32,7 +32,7 b''
32
32
33 <div class="no-padding panel-body">
33 <div class="no-padding panel-body">
34 <div class="panel panel-default">
34 <div class="panel panel-default">
35 <div class="panel-heading">
35 <div class="panel-heading clearfix">
36 <div class="changeset_header">
36 <div class="changeset_header">
37 <div class="pull-left">
37 <div class="pull-left">
38 ${h.link_to(h.safe_unicode(c.node1.path),h.url('files_home',repo_name=c.repo_name,
38 ${h.link_to(h.safe_unicode(c.node1.path),h.url('files_home',repo_name=c.repo_name,
@@ -48,7 +48,7 b''
48 </span>
48 </span>
49 </h3>
49 </h3>
50 <div id="body" class="panel panel-default">
50 <div id="body" class="panel panel-default">
51 <div class="panel-heading">
51 <div class="panel-heading clearfix">
52 <div class="pull-left">
52 <div class="pull-left">
53 <label>${_('New file type')}
53 <label>${_('New file type')}
54 <select class="form-control" id="mimetype" name="mimetype"></select>
54 <select class="form-control" id="mimetype" name="mimetype"></select>
@@ -17,7 +17,7 b''
17 <th class="left">${_('Age')}</th>
17 <th class="left">${_('Age')}</th>
18 <th class="left">${_('From')}</th>
18 <th class="left">${_('From')}</th>
19 <th class="left">${_('To')}</th>
19 <th class="left">${_('To')}</th>
20 <th class="right" style="padding-right:5px">${_('Delete')}</th>
20 <th class="left">${_('Delete')}</th>
21 </tr>
21 </tr>
22 </thead>
22 </thead>
23 % for pr in pullrequests:
23 % for pr in pullrequests:
@@ -37,12 +37,12 b''
37 <div class="pr-not-edit form-group" style="min-height:47px">
37 <div class="pr-not-edit form-group" style="min-height:47px">
38 <label>${_('Description')}:</label>
38 <label>${_('Description')}:</label>
39 %if editable:
39 %if editable:
40 <div style="margin: 20px 0; position: absolute">
40 <div id="pr-edit-btn">
41 <a class="btn btn-default btn-xs" onclick="$('.pr-do-edit').show();$('.pr-not-edit').hide()">${_("Edit")}</a>
41 <a class="btn btn-default btn-xs" onclick="$('.pr-do-edit').show();$('.pr-not-edit').hide()">${_("Edit")}</a>
42 </div>
42 </div>
43 %endif
43 %endif
44 <div>
44 <div>
45 <div class="form-control formatted-fixed">${h.urlify_text(c.pull_request.description, c.pull_request.org_repo.repo_name)}</div>
45 <div class="formatted-fixed">${h.urlify_text(c.pull_request.description, c.pull_request.org_repo.repo_name)}</div>
46 </div>
46 </div>
47 </div>
47 </div>
48
48
@@ -145,7 +145,7 b''
145 %if request.authuser.username != 'default':
145 %if request.authuser.username != 'default':
146 <li class="list-group-item clearfix">
146 <li class="list-group-item clearfix">
147 <a href="#" onclick="javascript:showRepoSize('repo_size_2','${c.db_repo.repo_name}')">
147 <a href="#" onclick="javascript:showRepoSize('repo_size_2','${c.db_repo.repo_name}')">
148 <i class="icon-ruler"></i> ${_('Repository Size')}
148 <i class="icon-ruler"></i> ${_('Size')}
149 <span class="badge pull-right" id="repo_size_2"></span>
149 <span class="badge pull-right" id="repo_size_2"></span>
150 </a>
150 </a>
151 </li>
151 </li>
General Comments 0
You need to be logged in to leave comments. Login now