BigW Consortium Gitlab

Commit ed4dcf74 by Andrew8xx8

View improved. Pagination added

parent 3d3e40c2
......@@ -11,3 +11,5 @@
%tr
%td{colspan: 4}
%h3.nothing_here_message Nothing here.
= paginate @snippets
%h3.page_title
Snippets
Public snippets
%small share code pastes with others out of git repository
= link_to new_snippet_path, class: "btn btn-small add_new pull-right", title: "New Snippet" do
Add new snippet
%hr
.row
.span3
%ul.nav.nav-pills.nav-stacked
= nav_tab :scope, nil do
= link_to "All", snippets_path
= nav_tab :scope, 'projects' do
= link_to "Projects", snippets_path(scope: 'projects')
.span9
.span12
= render 'snippets'
......@@ -2,7 +2,7 @@
- if @snippet.private?
%i.icon-lock
- else
%i.icon-globe
%i.icon-globe.public-snippet
= @snippet.title
%small= @snippet.file_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment