show-notifications.patch

Mizuki ISHIKAWA, 2021-11-11 05:52

Download (2.89 KB)

View differences:

app/views/layouts/base.html.erb
108 108
    </div>
109 109

  
110 110
    <div id="content">
111
        <% if Setting.banner_text.present? %>
112
            <div id="banner-text">
113
                <%= textilizable Setting.banner_text %>
114
            </div>
115
        <% end %>
111 116
        <%= render_flash_messages %>
112 117
        <%= yield %>
113 118
        <%= call_hook :view_layouts_base_content %>
app/views/settings/_general.html.erb
6 6
<p><%= setting_text_area :welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p>
7 7
<%= wikitoolbar_for 'settings_welcome_text' %>
8 8

  
9
<p><%= setting_text_area :banner_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p>
10
<%= wikitoolbar_for 'settings_banner_text' %>
9 11

  
10 12
<p><%= setting_text_field :per_page_options, :size => 20 %>
11 13
<em class="info"><%= l(:text_comma_separated) %></em></p>
config/locales/en.yml
413 413

  
414 414
  setting_app_title: Application title
415 415
  setting_welcome_text: Welcome text
416
  setting_banner_text: Banner text
416 417
  setting_default_language: Default language
417 418
  setting_login_required: Authentication required
418 419
  setting_self_registration: Self-registration
config/locales/ja.yml
347 347

  
348 348
  setting_app_title: アプリケーションのタイトル
349 349
  setting_welcome_text: ウェルカムメッセージ
350
  setting_banner_text: バナーメッセージ
350 351
  setting_default_language: デフォルトの言語
351 352
  setting_login_required: 認証が必要
352 353
  setting_self_registration: ユーザーによるアカウント登録
config/settings.yml
23 23
  default: Redmine
24 24
welcome_text:
25 25
  default:
26
banner_text:
27
  default:
26 28
login_required:
27 29
  default: 0
28 30
  security_notifications: 1
public/stylesheets/application.css
1127 1127
  margin-left: 4px;
1128 1128
}
1129 1129

  
1130
/***** Banner *****/
1131

  
1132
div#banner-text {
1133
  padding: 0px 20px;
1134
  margin-bottom: 2px;
1135
  background-color: #eee;
1136
  border: 1px solid #ddd;
1137
  padding-left: 12px;
1138
}
1139

  
1130 1140
/***** Progress bar *****/
1131 1141
table.progress {
1132 1142
  border-collapse: collapse;