From f71ba31bfed4360efbe66c9534bba636ff62c499 Mon Sep 17 00:00:00 2001 From: Benjamin Willems Date: Fri, 19 Feb 2021 22:15:54 -0800 Subject: [PATCH] Move "Page History" into button group If the user has edit permissions, the "History" button is shown in a button group with "Edit" and "Rename". If the user does not have edit permissions, it's shown by itself. This commit also renames the label from "Page History" to "History". --- lib/gollum/templates/navbar.mustache | 31 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/lib/gollum/templates/navbar.mustache b/lib/gollum/templates/navbar.mustache index ddbd0a3e..0102f100 100644 --- a/lib/gollum/templates/navbar.mustache +++ b/lib/gollum/templates/navbar.mustache @@ -41,21 +41,19 @@ - {{#history}} -
- - Page History - -
- {{/history}} +
+
+ {{#history}} + + History + + {{/history}} - {{#allow_editing}} -
-
+ {{#allow_editing}} {{#allow_uploads}}