This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring: Not to use project setting tab but to use project menu.
Related to #127 Update test code and css.
- Loading branch information
1 parent
0038f92
commit 5c0aba8
Showing
11 changed files
with
78 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<% banner = @banner %> | ||
|
||
<%= form_tag({ action: 'edit' }, id: 'banner') do %> | ||
|
||
<div id="banner_setting'> | ||
<%= error_messages_for 'banner' %> | ||
<div class='box tabular'> | ||
<p> | ||
<%= content_tag(:label, l(:button_activate))%> | ||
<%= hidden_field_tag('setting[enabled]', false).html_safe %> | ||
<%= check_box_tag 'setting[enabled]', true, banner['enabled'] %> | ||
</p> | ||
<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]', '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/> | ||
<%= radio_button_tag 'setting[style]', 'nodata', banner['style'] == 'nodata' %> <span class='banner_normal'>Nodata (Like Redmine.org style) </span> | ||
</p> | ||
|
||
<p> | ||
<%= content_tag(:label, l(:setting_banner_display_part))%> | ||
<%= select_tag('setting[display_part]', | ||
options_for_select([[l(:page_overview_only), 'overview'], | ||
[l(:page_new_issue_only), 'new_issue'], | ||
[l(:page_overview_and_issues), 'overview_and_issues'], [l(:page_all), 'all']], | ||
banner['display_part'])) %> | ||
<br/>Now project banner is displayed at the top only, but you can select which page to show banner. | ||
</p> | ||
|
||
<p> | ||
<%=content_tag(:label, l(:label_banner_message)) %> | ||
<%= text_area_tag 'setting[banner_description]', banner['banner_description'], size: '40x3', | ||
class: 'wiki-edit', required: true %><br/> | ||
<%= wikitoolbar_for "setting_banner_description" %> | ||
|
||
<div id='banner_description_preview' class='wiki'></div> | ||
|
||
</div> | ||
<%= submit_tag l(:button_save) %> | ||
|
||
<% end %> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.banner { | ||
div.banner { | ||
border: 1px solid; | ||
margin: 2px 0; | ||
padding: 2px 20px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.