Welcome to mirror list, hosted at ThFree Co, Russian Federation.

current_user_index.html.haml « snippets « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3e0304287015d6400353df9da82507407b695ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%h3.page-title
  My Snippets
  .pull-right
    = link_to new_snippet_path, class: "btn btn-new btn-grouped", title: "New Snippet" do
      Add new snippet
    = link_to snippets_path, class: "btn btn-grouped"  do
      Discover snippets

%p.light
  Share code pastes with others out of git repository
%hr

.row
  .col-md-3
    %ul.nav.nav-pills.nav-stacked
      = nav_tab :scope, nil do
        = link_to user_snippets_path(@user) do
          All
          %span.pull-right
            = @user.snippets.count
      = nav_tab :scope, 'is_private' do
        = link_to user_snippets_path(@user, scope: 'is_private') do
          Private
          %span.pull-right
            = @user.snippets.is_private.count
      = nav_tab :scope, 'is_public' do
        = link_to user_snippets_path(@user, scope: 'is_public') do
          Public
          %span.pull-right
            = @user.snippets.is_public.count

  .col-md-9.my-snippets
    = render 'snippets'