From 8f1ec81c361caa9ad796af05d66e12ed52be6cd0 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 4 Oct 2023 13:45:22 +0200 Subject: [PATCH 1/2] Remove a bogus end tag This has been introduced in 38c17b0e (sidebar is a shared partial now, 2012-05-02) and it looks like some unwanted Intellisense left-over. Signed-off-by: Johannes Schindelin --- app/views/books/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/books/show.html.erb b/app/views/books/show.html.erb index 762722f50d..da80a85944 100644 --- a/app/views/books/show.html.erb +++ b/app/views/books/show.html.erb @@ -41,7 +41,7 @@ <% end %>

- The entire Pro Git book, written by Scott Chacon and Ben Straub and published by Apress, is available here. All content is licensed under the Creative Commons Attribution Non Commercial Share Alike 3.0 license. Print versions of the book are available on Amazon.com. + The entire Pro Git book, written by Scott Chacon and Ben Straub and published by Apress, is available here. All content is licensed under the Creative Commons Attribution Non Commercial Share Alike 3.0 license. Print versions of the book are available on Amazon.com.

The version found here has been updated with corrections and additions from hundreds of contributors. If you see an error or have a suggestion, patches and issues are welcome in its GitHub repository. From db37eac90d12b692ada8dc9353824b094ebd15e6 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 17 Oct 2023 09:13:20 +0200 Subject: [PATCH 2/2] Remove obsolete banner We have not shown the banner in years. Let's just drop it. Signed-off-by: Johannes Schindelin --- app/assets/stylesheets/layout.scss | 24 ------------------------ app/helpers/application_helper.rb | 6 ------ app/views/shared/_banner.html.erb | 26 -------------------------- 3 files changed, 56 deletions(-) delete mode 100644 app/views/shared/_banner.html.erb diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 0d45c9b5eb..d0a4ff7f72 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -32,30 +32,6 @@ aside { margin-bottom: 35px; } -.banner-message { - position: relative; - padding: 1em 100px; - margin-bottom: 30px; - font-size: 100%; - color: #855; - background-color: #fcbda5; - - a { - color: #c22; - } - - .dismiss { - position: absolute; - top: 0; - right: 0; - width: 2em; - padding: 0; - line-height: 2em; - background: none; - border: 0; - } -} - #content { float: right; width: 702px; diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 48cbdca0dc..edf5ca59e3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -52,10 +52,4 @@ def image_tag(image, options = {}) tag("img", options) end - - def banner_duration(duration) - return "" if duration.blank? - - ISO8601::Duration.new(duration).to_seconds.round * 1000 - end end diff --git a/app/views/shared/_banner.html.erb b/app/views/shared/_banner.html.erb deleted file mode 100644 index 104f86ab74..0000000000 --- a/app/views/shared/_banner.html.erb +++ /dev/null @@ -1,26 +0,0 @@ -