2019-02-13 20:06:14 +08:00
|
|
|
<% provide(:head_title, t("system_notifications.index.whats_new")) %>
|
2019-02-15 20:07:29 +08:00
|
|
|
|
2019-02-13 20:06:14 +08:00
|
|
|
<div class="content-pane" id="system-notifications-index">
|
|
|
|
<h3 class="title-container">
|
|
|
|
<strong><%= t("system_notifications.index.whats_new") %></strong>
|
2019-02-19 18:08:59 +08:00
|
|
|
<%= link_to t("system_notifications.index.settings"), preferences_path %>
|
2019-02-13 20:06:14 +08:00
|
|
|
</h3>
|
|
|
|
<%= form_tag system_notifications_path, method: :get, id: "search-bar-notifications", class: "navbar-form navbar-left", role: "search" do %>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<input class="form-control" type="text" name="search_queue" placeholder="<%= t("nav.label.search") %>" value="<%= params[:search_queue] %>" />
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button id="search-button" class="btn btn-default" type="submit">
|
|
|
|
<span class="fas fa-search"></span>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2019-02-21 23:15:13 +08:00
|
|
|
<div class="system-notifications-container">
|
2019-02-13 20:06:14 +08:00
|
|
|
<%= render partial: "list", locals: { notifications: @system_notifications[:notifications] } %>
|
|
|
|
</div>
|
2019-02-22 20:20:51 +08:00
|
|
|
<div class="text-center">
|
|
|
|
<% if @system_notifications[:more_notifications_url] && @system_notifications[:notifications].present? %>
|
2019-04-12 17:58:47 +08:00
|
|
|
<a class="btn btn-default btn-more-system-notifications"
|
2019-02-13 20:06:14 +08:00
|
|
|
href="<%= @system_notifications[:more_notifications_url] %>"
|
|
|
|
data-remote="true">
|
|
|
|
<%= t("system_notifications.index.more_notifications") %></a>
|
2019-02-22 20:20:51 +08:00
|
|
|
<% else %>
|
|
|
|
<span class="no-notification-message"><%= t("system_notifications.index.no_notifications") %></span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2019-02-13 20:06:14 +08:00
|
|
|
</div>
|
|
|
|
|
2019-02-20 20:15:16 +08:00
|
|
|
<%= javascript_include_tag("system_notifications/index") %>
|