Sha256: 78a0c7dd57fbfb1b3afd3dda2a4af055ea9903f0b14e1e5aa0a1f10e1daf4a36

Contents?: true

Size: 1.17 KB

Versions: 94

Compression:

Stored size: 1.17 KB

Contents

<% if @notices && @notices.any? %>
  <div class="Nxd-header-notices">
    <% @notices.each do |id, config| %>
      <% if config['path'].nil? || request.path.match(Regexp.new(config['path'])) %>
        <div class="Vlt-callout Vlt-callout--shoutout" data-notice-dismissible="<%= config['dismissible'] || true %>" data-notice-id="<%= id %>">
          <i></i>
          <div class="Vlt-callout__content">
            <%= config['content'].html_safe %>
          </div>
           <% unless config['dismissible'] == false %>
              <button class="Vlt-callout__dismiss"></button>
            <% end %>
        </div>
      <% end %>
    <% end %>
<% end %>

<% if I18n.locale.to_s != 'en' %>
  <div class="Vlt-callout Vlt-callout--shoutout">
    <i></i>
    <div class="Vlt-callout__content">
      <% if I18n.locale.to_s == 'cn' %>
        <p>这份文档还在翻译中,预期年底前完成。欢迎您提供宝贵的意见及建议。</p>
      <% elsif I18n.locale.to_s == 'ja' %>
        <p>このコンテンツはまだ翻訳中であり、年末までに完了する予定です。貴重なコメントや提案を歓迎します。</p>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.15 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.14 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.13 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.12 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.11 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.10 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.9 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.8 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.7 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.6 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.5 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.4 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.3 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.2 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.1 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.5.0 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.4.9 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.4.8 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb
station-0.4.7 lib/nexmo_developer/app/views/layouts/partials/_notices.html.erb