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

show.html.haml « projects « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b9294bbafbe250e09eb558ff1b8a4542323cd44c (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
%h3.page_title
  Project: #{@project.name_with_namespace}
  = link_to edit_admin_project_path(@project), class: "btn pull-right" do
    %i.icon-edit
    Edit

- if @repository && @repository.has_commits?
  - if !@repository.has_post_receive_file?
    %br
    .alert.alert-error
      %span
        %strong Project has commits but missing post-receive file.
        %br
        If you exported project manually - make a link of post-receive hook file from gitolite to project repository
  - elsif !@repository.valid_post_receive_file?
    %br
    .alert.alert-error
      %span
        %strong Project has invalid post-receive file.
        %br
        1. Make sure your gitolite instace has latest post-receive file.
        %br
        2. Make a link of post-receive hook file from gitolite to project repository


%br
%table.zebra-striped
  %thead
    %tr
      %th Project
      %th
  %tr
    %td
      %b
        Name:
    %td
      = @project.name
  %tr
    %td
      %b
        Namespace:
    %td
      - if @project.namespace
        = @project.namespace.human_name
      - else
        Global
  %tr
    %td
      %b
        Owned by:
    %td
      - if @project.owner
        = link_to @project.owner_name, admin_user_path(@project.owner)
      - else
        (deleted)
  %tr
    %td
      %b
        Created by:
    %td
      = @project.creator.try(:name) || '(deleted)'
  %tr
    %td
      %b
        Created at:
    %td
      = @project.created_at.stamp("March 1, 1999")
    %tr
      %td
        %b
          Smart HTTP:
      %td
        = link_to @project.http_url_to_repo
    %tr
      %td
        %b
          SSH:
      %td
        = link_to @project.ssh_url_to_repo
  - if @project.public
    %tr.bgred
      %td
        %b
          Public Read-Only Code access:
      %td
        = check_box_tag 'public', nil, @project.public

- if @repository
  %table.zebra-striped
    %thead
      %tr
        %th Repository
        %th
    %tr
      %td
        %b
          FS Path:
      %td
        %code= @repository.path_to_repo
    %tr
      %td
        %b
          Last commit at:
      %td
        = last_commit(@project)
    %tr
      %td
        %b
          Post Receive File:
      %td
        = check_box_tag :post_receive_file, 1, @repository.has_post_receive_file?, disabled: true

%br
%h5
  Team
  %small
    (#{@project.users.count})
%br
%table.zebra-striped.team_members
  %thead
    %tr
      %th Name
      %th Project Access
      %th Repository Access
      %th

  - @project.users.each do |tm|
    %tr
      %td
        = link_to tm.name, admin_user_path(tm)
      %td= @project.project_access_human(tm)
      %td= link_to 'Edit Access', edit_admin_project_member_path(@project, tm), class: "btn btn-small"
      %td= link_to 'Remove from team', admin_project_member_path(@project, tm), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove small"

%br
%h5 Add new team member
%br
= form_tag team_update_admin_project_path(@project), class: "bulk_import", method: :put  do
  %table.zebra-striped
    %thead
      %tr
        %th Users
        %th Project Access:

    %tr
      %td= select_tag :user_ids, options_from_collection_for_select(@users , :id, :name), multiple: true, data: {placeholder: 'Select users'}, class: 'chosen span5'
      %td= select_tag :project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span3"}

    %tr
      %td= submit_tag 'Add', class: "btn btn-primary"
      %td
        Read more about project permissions
        %strong= link_to "here", help_permissions_path, class: "vlink"