Commit ed4dcf7484149c4432597c81b9ce1324010e036a

Authored by Andrew8xx8
1 parent 3d3e40c2

View improved. Pagination added

app/views/snippets/_snippets.html.haml
... ... @@ -11,3 +11,5 @@
11 11 %tr
12 12 %td{colspan: 4}
13 13 %h3.nothing_here_message Nothing here.
  14 +
  15 += paginate @snippets
... ...
app/views/snippets/index.html.haml
1 1 %h3.page_title
2   - Snippets
  2 + Public snippets
3 3 %small share code pastes with others out of git repository
4 4 = link_to new_snippet_path, class: "btn btn-small add_new pull-right", title: "New Snippet" do
5 5 Add new snippet
6 6  
7 7 %hr
8 8 .row
9   - .span3
10   - %ul.nav.nav-pills.nav-stacked
11   - = nav_tab :scope, nil do
12   - = link_to "All", snippets_path
13   - = nav_tab :scope, 'projects' do
14   - = link_to "Projects", snippets_path(scope: 'projects')
15   -
16   - .span9
  9 + .span12
17 10 = render 'snippets'
  11 +
... ...
app/views/snippets/show.html.haml
... ... @@ -2,7 +2,7 @@
2 2 - if @snippet.private?
3 3 %i.icon-lock
4 4 - else
5   - %i.icon-globe
  5 + %i.icon-globe.public-snippet
6 6  
7 7 = @snippet.title
8 8 %small= @snippet.file_name
... ...