skill-assessment-app/app/views/admin/dashboard.html.erb
2016-08-22 16:26:21 -05:00

19 lines
482 B
Plaintext

<%
content_for :section_title, "Admin Dashboard"
%>
<main class="summary_tpl">
<section>
<h1>Quizzes</h1>
<%= render partial: 'admin/quiz/table_list', locals: { quizzes: @quizzes } %>
<%= link_to('New Quiz', admin_new_quiz_path, { class: 'btn' }) %>
</section>
<section>
<h1>Users</h1>
<%= render partial: 'admin/user/table_list', locals: { users: @users } %>
<%= link_to('New User', admin_new_user_path, { class: 'btn' }) %>
</section>
</main>