Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Remove unused file. Fix wrong link to setting.
Browse files Browse the repository at this point in the history
Fix HTML syntax error.
  • Loading branch information
akiko-pusu committed May 6, 2020
1 parent 1f1876d commit 3502e25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 44 deletions.
2 changes: 1 addition & 1 deletion app/views/banner/_project_body_bottom.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if authorize_for(:banner, :edit)
%>
<div class="banner_edit">
<%= link_to l(:button_edit),
{ controller: 'projects', action: "settings", id: @project, tab: 'banner' },
{ controller: 'banner', action: 'show', project_id: @project },
{ class: 'icon banner-icon-edit', title: l(:button_edit) } %>

<a class="icon banner-icon-off"
Expand Down
42 changes: 0 additions & 42 deletions app/views/banner/_show.html.erb

This file was deleted.

3 changes: 2 additions & 1 deletion app/views/banner/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<% banner = @banner %>
<h2><%= l(:banner) %></h2>

<%= form_tag({ action: 'edit' }, id: 'banner') do %>

Expand All @@ -14,7 +15,7 @@

<p>
<%= content_tag(:label, l(:label_message_type))%>
<%= radio_button_tag 'setting[style]', 'info', banner['style'] == 'info' %> <span class="banner_info'>Info</span><br/>
<%= radio_button_tag 'setting[style]', 'info', banner['style'] == 'info' %> <span class='banner_info'>Info</span><br/>
<%= radio_button_tag 'setting[style]', 'warn', banner['style'] == 'warn' %> <span class='banner_warn'>Warn</span><br/>
<%= radio_button_tag 'setting[style]', 'alert', banner['style'] == 'alert' %> <span class='banner_alert'>Alert </span><br/>
<%= radio_button_tag 'setting[style]', 'normal', banner['style'] == 'normal' %> <span class='banner_normal'>Normal </span><br/>
Expand Down

0 comments on commit 3502e25

Please sign in to comment.