mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #40411 from p8/guides/version-badge
Always show version badge in guides, not just for edge [ci skip]
This commit is contained in:
commit
f432f70aeb
3 changed files with 7 additions and 7 deletions
|
@ -768,10 +768,10 @@ code.highlight.console span.w, code.highlight.irb span.w {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Edge Badge
|
/* Version Badge
|
||||||
--------------------------------------- */
|
--------------------------------------- */
|
||||||
|
|
||||||
#edge-badge {
|
#version-badge {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 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;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Edge Badge
|
/* Version Badge
|
||||||
--------------------------------------- */
|
--------------------------------------- */
|
||||||
|
|
||||||
#edge-badge {
|
#version-badge {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
</head>
|
</head>
|
||||||
<body class="guide">
|
<body class="guide">
|
||||||
<% if @edge %>
|
<% if badge_version = @edge ? "edge" : @version %>
|
||||||
<div>
|
<div>
|
||||||
<div id="edge-badge">edge</div>
|
<div id="version-badge"><%= badge_version %></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div id="topNav">
|
<div id="topNav">
|
||||||
|
|
Loading…
Reference in a new issue