# HG changeset patch # User Mads Kiilerich # Date 2017-02-16 02:43:11 # Node ID 03746b8cd5c9a5ce49536408b707537732b901d7 # Parent 97ec8cf362c33e5c8fda879d02543b801944d29b style: use more Bootstrap pull-left and pull-right Based on work by Dominik Ruf. diff --git a/kallithea/templates/admin/gists/show.html b/kallithea/templates/admin/gists/show.html --- a/kallithea/templates/admin/gists/show.html +++ b/kallithea/templates/admin/gists/show.html @@ -50,13 +50,13 @@ %if h.HasPermissionAny('hg.admin')() or c.gist.owner_id == request.authuser.user_id: -
+
${h.form(url('gist_delete', gist_id=c.gist.gist_id))} ${h.submit('remove_gist', _('Delete'),class_="btn btn-danger btn-xs",onclick="return confirm('"+_('Confirm to delete this Gist')+"');")} ${h.end_form()}
%endif -
+
## only owner should see that %if h.HasPermissionAny('hg.admin')() or c.gist.owner_id == request.authuser.user_id: ${h.link_to(_('Edit'),h.url('edit_gist', gist_id=c.gist.gist_access_id),class_="btn btn-default btn-xs")} @@ -79,7 +79,7 @@
ΒΆ ${h.safe_unicode(file.path)} -
+
${h.link_to(_('Show as raw'),h.url('formatted_gist_file', gist_id=c.gist.gist_access_id, format='raw', revision=file.changeset.raw_id, f_path=h.safe_unicode(file.path)),class_="btn btn-default btn-xs")}
diff --git a/kallithea/templates/base/perms_summary.html b/kallithea/templates/base/perms_summary.html --- a/kallithea/templates/base/perms_summary.html +++ b/kallithea/templates/base/perms_summary.html @@ -9,7 +9,7 @@

${section.replace("_"," ").capitalize()}

%if section != 'global': -
+
${_('Show')}: diff --git a/kallithea/templates/changeset/changeset.html b/kallithea/templates/changeset/changeset.html --- a/kallithea/templates/changeset/changeset.html +++ b/kallithea/templates/changeset/changeset.html @@ -31,7 +31,7 @@ ${self.repo_context_bar('changelog', c.c
-
+
@@ -43,7 +43,7 @@ ${self.repo_context_bar('changelog', c.c
-