Commit ed4dcf74 authored by Andrew8xx8's avatar Andrew8xx8

View improved. Pagination added

parent 3d3e40c2
...@@ -11,3 +11,5 @@ ...@@ -11,3 +11,5 @@
%tr %tr
%td{colspan: 4} %td{colspan: 4}
%h3.nothing_here_message Nothing here. %h3.nothing_here_message Nothing here.
= paginate @snippets
%h3.page_title %h3.page_title
Snippets Public snippets
%small share code pastes with others out of git repository %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 = link_to new_snippet_path, class: "btn btn-small add_new pull-right", title: "New Snippet" do
Add new snippet Add new snippet
%hr %hr
.row .row
.span3 .span12
%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
= render 'snippets' = render 'snippets'
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- if @snippet.private? - if @snippet.private?
%i.icon-lock %i.icon-lock
- else - else
%i.icon-globe %i.icon-globe.public-snippet
= @snippet.title = @snippet.title
%small= @snippet.file_name %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