Skip to content

Commit c5d2c01

Browse files
Merge pull request #273 from jonathanhefner/badge-move-to-panel
Factor out version badge HTML to `_panel.rhtml`
2 parents c1434f1 + 71801ec commit c5d2c01

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

lib/rdoc/generator/template/rails/_panel.rhtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<a href="#" class="back-to-top"></a>
2+
<% if project_version %>
3+
<div id="version-badge"><%= project_version %></div>
4+
<% end %>
5+
26
<input type="checkbox" id="hamburger" class="panel_checkbox">
37
<label class="panel_mobile_button" for="hamburger"><span></span> Menu</label>
48
<nav class="panel panel_tree" id="panel" data-turbo-permanent>

lib/rdoc/generator/template/rails/class.rhtml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
</span>
4040
<% end %>
4141
</h2>
42-
43-
<% if project_version %>
44-
<div id="version-badge"><%= project_version %></div>
45-
<% end %>
4642
</div>
4743

4844
<main id="bodyContent">

lib/rdoc/generator/template/rails/file.rhtml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
</li>
3636
<li>Last modified: <%= file.file_stat.mtime %></li>
3737
</ul>
38-
39-
<% if project_version %>
40-
<div id="version-badge"><%= project_version %></div>
41-
<% end %>
4238
</div>
4339

4440
<main id="bodyContent">

lib/rdoc/generator/template/rails/index.rhtml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
<li><%= h index.relative_name %></li>
2929
<li>Last modified: <%= index.last_modified %></li>
3030
</ul>
31-
<% if project_version %>
32-
<div id="version-badge"><%= project_version %></div>
33-
<% end %>
3431
</div>
3532

3633
<main id="bodyContent">

0 commit comments

Comments
 (0)