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 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from akiko-pusu/dev
Update version to 0.3.1
- Loading branch information
Showing
18 changed files
with
125 additions
and
129 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
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
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 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.
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 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
Oops, something went wrong.