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

index.html.haml « forks « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ace22625d1d748e3b8d521593900d74d4c5d7ed8 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.top-area
  .nav-text
    - full_count_title = "#{@public_forks_count} public and #{@private_forks_count} private"
    == #{pluralize(@total_forks_count, 'fork')}: #{full_count_title}

  .nav-controls
    = search_field_tag :filter_projects, nil, placeholder: 'Search forks', class: 'projects-list-filter project-filter-form-field form-control input-short',
      spellcheck: false, data: { 'filter-selector' => 'span.namespace-name' }

    .dropdown
      %button.dropdown-toggle.btn.sort-forks{type: 'button', 'data-toggle' => 'dropdown'}
        %span.light sort:
        - if @sort.present?
          = sort_options_hash[@sort]
        - else
          = sort_title_recently_created
        %b.caret
      %ul.dropdown-menu.dropdown-menu-align-right
        %li
          - excluded_filters = [:state, :scope, :label_name, :milestone_id, :assignee_id, :author_id]
          = link_to page_filter_path(sort: sort_value_recently_created, without: excluded_filters) do
            = sort_title_recently_created
          = link_to page_filter_path(sort: sort_value_oldest_created, without: excluded_filters) do
            = sort_title_oldest_created
          = link_to page_filter_path(sort: sort_value_recently_updated, without: excluded_filters) do
            = sort_title_recently_updated
          = link_to page_filter_path(sort: sort_value_oldest_updated, without: excluded_filters) do
            = sort_title_oldest_updated

    - if current_user && can?(current_user, :fork_project, @project)
      - if current_user.already_forked?(@project) && current_user.manageable_namespaces.size < 2
        = link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: 'Go to your fork', class: 'btn btn-new' do
          = icon('code-fork fw')
          Fork
      - else
        = link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork project", class: 'btn btn-new' do
          = icon('code-fork fw')
          Fork


.projects-list-holder
  - if @forks.blank?
    %ul.content-list
      %li
        .nothing-here-block No forks to show
  - else
    = render 'shared/projects/list', projects: @forks, use_creator_avatar: true,
      forks: true, show_last_commit_as_description: true

    - if @private_forks_count > 0
      %ul.projects-list.private-forks-notice
        %li.project-row
          = icon('lock fw', base: 'circle', class: 'fa-lg private-fork-icon')
          %strong= pluralize(@private_forks_count, 'private fork')
          %span you have no access to.