Skip to content

Commit 350c266

Browse files
committed
remove unused hack
1 parent a0af646 commit 350c266

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

app/controllers/wiki_controller.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@ def create
128128

129129
# display a page (in editing mode if it doesn't exist)
130130
def show
131-
# TODO FIXME OMG! this is the ugliest hack I ever performed
132-
# We need to hide the clearfix in the wiki to avoid additional spacing in the wiki
133-
# THIS HACK NEEDS TO BE REPLACED BY AN ENGINEERS SOLUTION!
134-
@no_clearfix = true
135-
136131
@page = @wiki.find_or_new_page(wiki_page_title)
137132
if @page.new_record?
138133
if User.current.allowed_to?(:edit_wiki_pages, @project) && editable?

app/views/layouts/_action_menu_base.html.erb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ See docs/COPYRIGHT.rdoc for more details.
2828
++#%>
2929

3030
<% action_menu_key = action_menu_key ? action_menu_key : :action_menu_main %>
31-
<%
32-
# TODO FIXME OMG! this is the ugliest hack I ever performed
33-
# We need to hide the clearfix in the wiki to avoid additional spacing in the wiki
34-
# THIS HACK NEEDS TO BE REPLACED BY AN ENGINEERS SOLUTION!
35-
@no_clearfix ||= false
36-
%>
31+
3732
<div class="toolbar-container">
3833
<div class="toolbar">
3934
<ul class="toolbar-items <%= action_menu_key %> <%= action_menu_key.to_s.gsub('action_menu_', 'legacy-actions-') %>">
@@ -53,7 +48,3 @@ See docs/COPYRIGHT.rdoc for more details.
5348
</ul>
5449
</div>
5550
</div>
56-
57-
<% unless @no_clearfix %>
58-
<div class="clearfix"></div>
59-
<% end %>

0 commit comments

Comments
 (0)