mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
stylize submission queue
This commit is contained in:
parent
6a70bafe19
commit
ab8a1b0dca
@ -2,7 +2,11 @@
|
||||
<div class="col s12">
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="card-title">Pending submissions</div>
|
||||
<div class="card-title">
|
||||
You have <%= pluralize @page_collection_submissions.count, 'pending submission' %>
|
||||
to
|
||||
<%= link_to @page_collection.name, @page_collection, class: "#{PageCollection.color}-text" %>.
|
||||
</div>
|
||||
<p>
|
||||
Submitters will be notified if you accept their content.
|
||||
</p>
|
||||
@ -30,18 +34,18 @@
|
||||
</blockquote>
|
||||
<div>
|
||||
Submitted by
|
||||
<%= link_to content.user, class: "#{User.color}-text" do %>
|
||||
<%= link_to content.user, class: "#{User.color}-text text-lighten-3" do %>
|
||||
<%= content.user.display_name %>
|
||||
<% end %>
|
||||
<%= time_ago_in_words page_collection_submission.submitted_at %> ago
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<%= link_to approve_page_collection_submission_path(page_collection_submission), class: 'green-text' do %>
|
||||
<%= link_to approve_page_collection_submission_path(page_collection_submission), class: 'btn green white-text' do %>
|
||||
<i class="material-icons left">check</i>
|
||||
Approve
|
||||
<% end %>
|
||||
<%= link_to pass_page_collection_submission_path(page_collection_submission), class: 'red-text right' do %>
|
||||
<%= link_to pass_page_collection_submission_path(page_collection_submission), class: 'btn red white-text right' do %>
|
||||
<i class="material-icons left">close</i>
|
||||
Pass
|
||||
<% end %>
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to 'Edit', edit_page_collection_submission_path(@page_collection_submission) %> |
|
||||
<%= link_to 'Back', page_collection_submissions_path %>
|
||||
@ -128,7 +128,20 @@
|
||||
<div class="row">
|
||||
<div class="col s12 m10 offset-m1 l8 offset-l2">
|
||||
<div class="card-panel">
|
||||
This collection doesn't have any approved public pages yet. Please check back later!
|
||||
This collection doesn't have any approved public pages yet.
|
||||
<% if user_signed_in? %>
|
||||
<% if current_user == @page_collection.user %>
|
||||
<a class="modal-trigger" href="#share-page-modal">
|
||||
Add your first page.
|
||||
</a>
|
||||
<% else %>
|
||||
<a class="modal-trigger" href="#share-page-modal">
|
||||
Yours could be first!
|
||||
</a>
|
||||
<% end %>
|
||||
<% else %>
|
||||
Sign in to submit your pages!
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user