mirror of https://github.com/rails/rails
Always show version badge, not just for edge [ci skip]
Now that we have a CSS based version banner since 1c5d9a89a7
we can also show the banner for non edge versions.
This commit is contained in:
parent
d7c7a570b9
commit
a24fc7ac1d
|
@ -768,10 +768,10 @@ code.highlight.console span.w, code.highlight.irb span.w {
|
|||
display: table-cell;
|
||||
}
|
||||
|
||||
/* Edge Badge
|
||||
/* Version Badge
|
||||
--------------------------------------- */
|
||||
|
||||
#edge-badge {
|
||||
#version-badge {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
|
|
|
@ -764,10 +764,10 @@ div.important p, div.caution p, div.warning p, div.note p, div.info p {
|
|||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* Edge Badge
|
||||
/* Version Badge
|
||||
--------------------------------------- */
|
||||
|
||||
#edge-badge {
|
||||
#version-badge {
|
||||
position: fixed;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
<meta property="og:type" content="website" />
|
||||
</head>
|
||||
<body class="guide">
|
||||
<% if @edge %>
|
||||
<% if badge_version = @edge ? "edge" : @version %>
|
||||
<div>
|
||||
<div id="edge-badge">edge</div>
|
||||
<div id="version-badge"><%= badge_version %></div>
|
||||
</div>
|
||||
<% end %>
|
||||
<div id="topNav">
|
||||
|
|
Loading…
Reference in New Issue