diff --git a/app/views/snippets/_snippets.html.haml b/app/views/snippets/_snippets.html.haml index 8162c546ea7595b241c797b554b40d0980bc315a..192cb6aa94a2542f21f267aefac80510bed27c8e 100644 --- a/app/views/snippets/_snippets.html.haml +++ b/app/views/snippets/_snippets.html.haml @@ -11,3 +11,5 @@ %tr %td{colspan: 4} %h3.nothing_here_message Nothing here. + += paginate @snippets diff --git a/app/views/snippets/index.html.haml b/app/views/snippets/index.html.haml index 2c00dd465db5cba90c71576a794b05e41648463a..97f7b39877e4f7b580402412880d326c69a8e052 100644 --- a/app/views/snippets/index.html.haml +++ b/app/views/snippets/index.html.haml @@ -1,17 +1,11 @@ %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' + diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml index 18348fb10679ecbe87ee24684c001ea68a9dc975..37a1181dea378bc737a422cdb886ed1e0962797c 100644 --- a/app/views/snippets/show.html.haml +++ b/app/views/snippets/show.html.haml @@ -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