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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
bc6915f2
Commit
bc6915f2
authored
Mar 04, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
projects page finished
parent
d6b051c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
33 deletions
+54
-33
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+37
-16
app/views/projects/index.html.haml
app/views/projects/index.html.haml
+17
-17
No files found.
app/assets/stylesheets/common.scss
View file @
bc6915f2
...
@@ -78,6 +78,10 @@ a:focus {
...
@@ -78,6 +78,10 @@ a:focus {
.prepend-top-10
{
.prepend-top-10
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.padded
{
padding
:
20px
;
}
.no-borders
{
.no-borders
{
border
:none
;
border
:none
;
}
}
...
@@ -643,22 +647,6 @@ p.time {
...
@@ -643,22 +647,6 @@ p.time {
.wll
:hover
{
background
:none
}
.wll
:hover
{
background
:none
}
}
}
.projects_list
{
a
.project
{
h4
{
color
:
#888
;
}
&
.active
{
h4
{
color
:
#111
;
.ico.project
{
background-position
:
-209px
-21px
;
}
}
}
}
}
.ico
{
.ico
{
background
:
url("images.png")
no-repeat
-85px
-77px
;
background
:
url("images.png")
no-repeat
-85px
-77px
;
width
:
19px
;
width
:
19px
;
...
@@ -679,3 +667,36 @@ p.time {
...
@@ -679,3 +667,36 @@ p.time {
background-position
:
-209px
-21px
;
background-position
:
-209px
-21px
;
}
}
}
}
.leftbar
{
h5
,
.title
{
padding
:
5px
10px
;
}
h4
{
font-size
:
14px
;
padding
:
2px
10px
;
color
:
#888
;
border-bottom
:
1px
solid
#eee
;
&
:last-child
{
border
:none
;
}
}
a
.active
{
h4
{
color
:
#111
;
border-right
:
4px
solid
$styled_border_color
;
.ico.project
{
background-position
:
-209px
-21px
;
}
}
}
}
.btn
{
&
.very_small
{
font-size
:
11px
;
padding
:
4px
;
margin
:
2px
;
}
}
app/views/projects/index.html.haml
View file @
bc6915f2
%h3
Projects
%small
=
"(
#{
current_user
.
projects
.
count
}
)"
-
if
current_user
.
can_create_project?
%span
.right
=
link_to
new_project_path
,
:class
=>
"btn small"
do
New Project
%hr
-
unless
@projects
.
empty?
-
unless
@projects
.
empty?
.row
.row
.span5
.span4
%div
.content_list.projects_list
%div
.leftbar.ui-box
-
@projects
.
each
do
|
project
|
%h5
=
link_to
project_path
(
project
),
:remote
=>
true
,
:class
=>
dom_class
(
project
)
do
Projects
%h4
-
if
current_user
.
can_create_project?
%span
.ico.project
%span
.right
=
truncate
(
project
.
name
,
:length
=>
26
)
=
link_to
new_project_path
,
:class
=>
"btn very_small info"
do
.span11.right.show_holder
New Project
.loading
.content_list
-
@projects
.
each
do
|
project
|
=
link_to
project_path
(
project
),
:remote
=>
true
,
:class
=>
dom_class
(
project
)
do
%h4
%span
.ico.project
=
truncate
(
project
.
name
,
:length
=>
22
)
.span12.right
.show_holder.ui-box.padded
.loading
-
else
-
else
%h2
Nothing here
%h2
Nothing here
...
...
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