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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
4f953f6f
Commit
4f953f6f
authored
Jun 10, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better styling for admin:teams:index page
parent
c5f56ee8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
30 deletions
+43
-30
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+8
-0
app/views/admin/teams/index.html.haml
app/views/admin/teams/index.html.haml
+35
-30
No files found.
app/views/admin/dashboard/index.html.haml
View file @
4f953f6f
...
@@ -49,6 +49,14 @@
...
@@ -49,6 +49,14 @@
.span4
.span4
%h4
Stats
%h4
Stats
%hr
%hr
%p
Teams
%span
.light.pull-right
=
UserTeam
.
count
%p
Forks
%span
.light.pull-right
=
ForkedProjectLink
.
count
%p
%p
Issues
Issues
%span
.light.pull-right
%span
.light.pull-right
...
...
app/views/admin/teams/index.html.haml
View file @
4f953f6f
%h3
.page_title
%h3
.page_title
Teams
Teams
(
#{
@teams
.
total_count
}
)
%small
%small
allow you to organize groups of people that have a common focus. Use teams to simplify the process of assigning roles to groups of people.
allow you to organize groups of people that have a common focus. Use teams to simplify the process of assigning roles to groups of people.
=
link_to
'New Team'
,
new_admin_team_path
,
class:
"btn btn-small pull-right"
=
link_to
'New Team'
,
new_admin_team_path
,
class:
"btn btn-small pull-right"
%br
%br
=
form_tag
admin_teams_path
,
method: :get
,
class:
'form-inline'
do
=
form_tag
admin_teams_path
,
method: :get
,
class:
'form-inline'
do
=
text_field_tag
:name
,
params
[
:name
],
class:
"
xlarge
"
=
text_field_tag
:name
,
params
[
:name
],
class:
"
span6
"
=
submit_tag
"Search"
,
class:
"btn submit btn-primary"
=
submit_tag
"Search"
,
class:
"btn submit btn-primary"
%table
%hr
%thead
%tr
%th
Name
%i
.icon-sort-down
%th
Description
%th
Path
%th
Projects
%th
Members
%th
Owner
%th
.cred
Danger Zone!
%ul
.bordered-list
-
@teams
.
each
do
|
team
|
-
@teams
.
each
do
|
team
|
%tr
%li
%td
.clearfix
%strong
=
link_to
team
.
name
,
admin_team_path
(
team
)
.pull-right.prepend-top-10
%td
=
truncate
team
.
description
=
link_to
'Edit'
,
edit_admin_team_path
(
team
),
id:
"edit_
#{
dom_id
(
team
)
}
"
,
class:
"btn btn-small"
%td
=
team
.
path
=
link_to
'Destroy'
,
admin_team_path
(
team
),
confirm:
"REMOVE
#{
team
.
name
}
? Are you sure?"
,
method: :delete
,
class:
"btn btn-small btn-remove"
%td
=
team
.
projects
.
count
%td
=
team
.
members
.
count
%h4
%td
=
link_to
admin_team_path
(
team
)
do
%i
.icon-group
=
team
.
name
.clearfix.light.append-bottom-10
%span
%b
Owner:
-
if
team
.
owner
-
if
team
.
owner
=
link_to
team
.
owner
.
name
,
admin_user_path
(
team
.
owner
)
=
link_to
team
.
owner
.
name
,
admin_user_path
(
team
.
owner
)
-
else
-
else
(deleted)
(deleted)
%td
.bgred
\|
=
link_to
'Edit'
,
edit_admin_team_path
(
team
),
id:
"edit_
#{
dom_id
(
team
)
}
"
,
class:
"btn btn-small"
%span
=
link_to
'Destroy'
,
admin_team_path
(
team
),
confirm:
"REMOVE
#{
team
.
name
}
? Are you sure?"
,
method: :delete
,
class:
"btn btn-small btn-remove"
%b
Users:
%span
.badge
=
team
.
members
.
count
\|
%span
%b
Projects:
%span
.badge
=
team
.
projects
.
count
.clearfix
%p
=
truncate
team
.
description
,
length:
150
=
paginate
@teams
,
theme:
"gitlab"
=
paginate
@teams
,
theme:
"gitlab"
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