Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
20ce3980
Commit
20ce3980
authored
Jun 06, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
public_icon, private_icon helpers
parent
4a344c16
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
8 deletions
+24
-8
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+6
-0
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+9
-0
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+2
-2
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+2
-2
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+1
-1
app/views/help/permissions.html.haml
app/views/help/permissions.html.haml
+1
-0
app/views/snippets/_snippet.html.haml
app/views/snippets/_snippet.html.haml
+2
-2
app/views/teams/show.html.haml
app/views/teams/show.html.haml
+1
-1
No files found.
app/assets/stylesheets/common.scss
View file @
20ce3980
...
...
@@ -422,3 +422,9 @@ img.emoji {
.search-container
{
margin-top
:
30px
;
}
.description-block
{
@extend
.light-well
;
@extend
.light
;
margin-bottom
:
10px
;
}
app/helpers/application_helper.rb
View file @
20ce3980
...
...
@@ -202,4 +202,13 @@ module ApplicationHelper
def
extra_config
Gitlab
.
config
.
extra
end
def
public_icon
content_tag
:i
,
nil
,
class:
'icon-globe cblue'
end
def
private_icon
content_tag
:i
,
nil
,
class:
'icon-lock cgreen'
end
end
app/views/admin/projects/index.html.haml
View file @
20ce3980
...
...
@@ -47,9 +47,9 @@
-
@projects
.
each
do
|
project
|
%li
-
if
project
.
public
%i
.icon-share
=
public_icon
-
else
%i
.icon-lock.cgree
n
=
private_ico
n
=
link_to
project
.
name_with_namespace
,
[
:admin
,
project
]
.pull-right
=
link_to
'Edit'
,
edit_project_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-small"
...
...
app/views/groups/edit.html.haml
View file @
20ce3980
...
...
@@ -19,9 +19,9 @@
-
@group
.
projects
.
each
do
|
project
|
%li
-
if
project
.
public
%i
.icon-share
=
public_icon
-
else
%i
.icon-lock.cgree
n
=
private_ico
n
=
link_to
project
.
name_with_namespace
,
project
.pull-right
=
link_to
'Team'
,
project_team_index_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn btn-small"
...
...
app/views/groups/show.html.haml
View file @
20ce3980
...
...
@@ -13,7 +13,7 @@
.loading.hide
.side.span4
-
if
@group
.
description
.
present?
.description
.well.well-small.light
.description
-block
=
@group
.
description
=
render
"projects"
,
projects:
@projects
.prepend-top-20
...
...
app/views/help/permissions.html.haml
View file @
20ce3980
...
...
@@ -62,5 +62,6 @@
%fieldset
%legend
Owner
%ul
%li
Switch public mode
%li
Transfer project to another namespace
%li
Remove project
app/views/snippets/_snippet.html.haml
View file @
20ce3980
%li
.snippet-title
-
if
snippet
.
private?
%i
.icon-lock.cgree
n
=
private_ico
n
-
else
%i
.icon-globe.cblue
=
public_icon
=
link_to
reliable_snippet_path
(
snippet
)
do
%h5
.inline
=
truncate
(
snippet
.
title
,
length:
60
)
...
...
app/views/teams/show.html.haml
View file @
20ce3980
...
...
@@ -12,7 +12,7 @@
.loading.hide
.side.span4
-
if
@team
.
description
.
present?
.description
.well.well-small.light
.description
-block
=
@team
.
description
=
render
"projects"
,
projects:
@projects
.prepend-top-20
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment