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
Boxiang Sun
gitlab-ce
Commits
4bf446cb
Commit
4bf446cb
authored
Dec 29, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ui/compact_projects_list' of /home/git/repositories/gitlab/gitlabhq
parents
2ed08871
8b687068
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
34 deletions
+16
-34
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+0
-5
app/assets/stylesheets/sections/dashboard.scss
app/assets/stylesheets/sections/dashboard.scss
+8
-18
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+0
-8
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+8
-0
app/views/dashboard/_project.html.haml
app/views/dashboard/_project.html.haml
+0
-3
No files found.
app/assets/stylesheets/common.scss
View file @
4bf446cb
...
@@ -327,11 +327,6 @@ img.emoji {
...
@@ -327,11 +327,6 @@ img.emoji {
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.group-name
{
font-size
:
14px
;
line-height
:
24px
;
}
table
{
table
{
td
.permission-x
{
td
.permission-x
{
background
:
#D9EDF7
!
important
;
background
:
#D9EDF7
!
important
;
...
...
app/assets/stylesheets/sections/dashboard.scss
View file @
4bf446cb
...
@@ -67,44 +67,36 @@
...
@@ -67,44 +67,36 @@
.project-row
,
.group-row
{
.project-row
,
.group-row
{
padding
:
10px
12px
!
important
;
padding
:
10px
12px
!
important
;
font-size
:
14px
;
.namespace-name
{
line-height
:
24px
;
color
:
#666
;
font-weight
:
bold
;
}
a
{
a
{
display
:
block
;
display
:
block
;
}
}
.project-name
,
.group-name
{
.project-name
,
.group-name
{
font-
size
:
15px
;
font-
weight
:
500
;
}
}
.arrow
{
.arrow
{
float
:
right
;
float
:
right
;
padding
:
1
0px
5px
;
padding
:
0px
5px
;
margin
:
0
;
margin
:
0
;
font-size
:
20px
;
font-size
:
20px
;
color
:
#666
;
color
:
#666
;
}
}
.last-activity
{
.last-activity
{
float
:
right
;
font-size
:
12px
;
color
:
#AAA
;
color
:
#AAA
;
display
:
block
;
display
:
block
;
margin-top
:
5px
;
.date
{
.date
{
color
:
#777
;
color
:
#777
;
}
}
}
}
}
}
.group-row
{
.arrow
{
padding
:
2px
5px
;
}
}
.project-access-icon
{
.project-access-icon
{
margin-left
:
10px
;
margin-left
:
10px
;
float
:
left
;
float
:
left
;
...
@@ -125,10 +117,8 @@
...
@@ -125,10 +117,8 @@
.dash-project-access-icon
{
.dash-project-access-icon
{
float
:
left
;
float
:
left
;
margin-right
:
5px
;
margin-right
:
3px
;
font-size
:
18px
;
color
:
#999
;
color
:
#BBB
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
margin-top
:
2px
;
width
:
16px
;
width
:
16px
;
}
}
app/helpers/application_helper.rb
View file @
4bf446cb
...
@@ -136,14 +136,6 @@ module ApplicationHelper
...
@@ -136,14 +136,6 @@ module ApplicationHelper
Digest
::
SHA1
.
hexdigest
string
Digest
::
SHA1
.
hexdigest
string
end
end
def
project_last_activity
(
project
)
if
project
.
last_activity_at
time_ago_with_tooltip
(
project
.
last_activity_at
,
'bottom'
,
'last_activity_time_ago'
)
+
" ago"
else
"Never"
end
end
def
authbutton
(
provider
,
size
=
64
)
def
authbutton
(
provider
,
size
=
64
)
file_name
=
"
#{
provider
.
to_s
.
split
(
'_'
).
first
}
_
#{
size
}
.png"
file_name
=
"
#{
provider
.
to_s
.
split
(
'_'
).
first
}
_
#{
size
}
.png"
image_tag
(
"authbuttons/
#{
file_name
}
"
,
image_tag
(
"authbuttons/
#{
file_name
}
"
,
...
...
app/helpers/projects_helper.rb
View file @
4bf446cb
...
@@ -187,4 +187,12 @@ module ProjectsHelper
...
@@ -187,4 +187,12 @@ module ProjectsHelper
def
default_clone_protocol
def
default_clone_protocol
current_user
?
"ssh"
:
"http"
current_user
?
"ssh"
:
"http"
end
end
def
project_last_activity
(
project
)
if
project
.
last_activity_at
time_ago_with_tooltip
(
project
.
last_activity_at
,
'bottom'
,
'last_activity_time_ago'
)
+
" ago"
else
"Never"
end
end
end
end
app/views/dashboard/_project.html.haml
View file @
4bf446cb
...
@@ -9,6 +9,3 @@
...
@@ -9,6 +9,3 @@
=
truncate
(
project
.
name
,
length:
25
)
=
truncate
(
project
.
name
,
length:
25
)
%span
.arrow
%span
.arrow
%i
.icon-angle-right
%i
.icon-angle-right
%span
.last-activity
%span
Last activity:
%span
.date
=
project_last_activity
(
project
)
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