Skip to content

Commit

Permalink
Merge branch 'upstream-fixes'
Browse files Browse the repository at this point in the history
In the current effort to migrate https://git-scm.com/ to a static Hugo
site (see git#1804), we saw a bogus
tag that would confuse Hugo. We also saw a now-unused banner that we
probably do not want to bother migrating to Hugo.

So let's drop both.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Oct 17, 2023
2 parents 810faba + db37eac commit 10763f4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 57 deletions.
24 changes: 0 additions & 24 deletions app/assets/stylesheets/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 0 additions & 6 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion app/views/books/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>
<% end %>
<p>
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 <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution Non Commercial Share Alike 3.0 license</a>. Print versions of the book are available on <a href="https://www.amazon.com/Pro-Git-Scott-Chacon/dp/1484200772?ie=UTF8&camp=1789&creative=9325&creativeASIN=1430218339&linkCode=as2&tag=git-sfconservancy-20">Amazon.com</a>.</>
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 <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution Non Commercial Share Alike 3.0 license</a>. Print versions of the book are available on <a href="https://www.amazon.com/Pro-Git-Scott-Chacon/dp/1484200772?ie=UTF8&camp=1789&creative=9325&creativeASIN=1430218339&linkCode=as2&tag=git-sfconservancy-20">Amazon.com</a>.
</p>

<p>The version found here has been updated with corrections and additions from <a href="https://github.com/progit/progit2/graphs/contributors">hundreds of contributors</a>. If you see an error or have a suggestion, patches and issues are welcome in its <a href="https://github.com/progit/progit2">GitHub repository</a>.
Expand Down
26 changes: 0 additions & 26 deletions app/views/shared/_banner.html.erb

This file was deleted.

0 comments on commit 10763f4

Please sign in to comment.