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
793db070
Commit
793db070
authored
Aug 30, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyled projects list on dashboard
parent
51558bd5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
11 deletions
+49
-11
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/sections/projects.scss
+27
-1
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+12
-3
app/views/dashboard/index.html.haml
app/views/dashboard/index.html.haml
+10
-7
No files found.
app/assets/stylesheets/sections/projects.scss
View file @
793db070
...
@@ -14,6 +14,32 @@
...
@@ -14,6 +14,32 @@
text-shadow
:
0
1px
1px
#fff
;
text-shadow
:
0
1px
1px
#fff
;
padding
:
2px
10px
;
padding
:
2px
10px
;
}
}
ul
{
li
{
padding
:
0
;
a
{
display
:block
;
.project_name
{
color
:
#4fa2bd
;
font-size
:
14px
;
line-height
:
18px
;
}
.arrow
{
float
:right
;
padding
:
10px
;
margin
:
0
;
}
.last_activity
{
padding-top
:
5px
;
display
:block
;
span
,
strong
{
font-size
:
12px
;
color
:
#666
;
}
}
}
}
}
@extend
.leftbar
;
@extend
.leftbar
;
@extend
.ui-box
;
@extend
.ui-box
;
}
}
...
...
app/helpers/application_helper.rb
View file @
793db070
...
@@ -126,4 +126,13 @@ module ApplicationHelper
...
@@ -126,4 +126,13 @@ module ApplicationHelper
def
hexdigest
(
string
)
def
hexdigest
(
string
)
Digest
::
SHA1
.
hexdigest
string
Digest
::
SHA1
.
hexdigest
string
end
end
def
project_last_activity
project
activity
=
project
.
last_activity
if
activity
&&
activity
.
created_at
time_ago_in_words
(
activity
.
created_at
)
+
" ago"
else
"Never"
end
end
end
end
app/views/dashboard/index.html.haml
View file @
793db070
...
@@ -19,13 +19,16 @@
...
@@ -19,13 +19,16 @@
=
link_to
new_project_path
,
class:
"btn very_small info"
do
=
link_to
new_project_path
,
class:
"btn very_small info"
do
%i
.icon-plus
%i
.icon-plus
New Project
New Project
%ul
.unstyled
-
@projects
.
each
do
|
project
|
-
@projects
.
each
do
|
project
|
%li
.wll
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
%h4
%strong
.project_name
=
truncate
(
project
.
name
,
length:
25
)
%span
.ico.project
%span
.arrow
=
truncate
(
project
.
name
,
length:
25
)
%span
.right
→
→
%span
.last_activity
%strong
Last activity:
%span
=
project_last_activity
(
project
)
.bottom
=
paginate
@projects
,
theme:
"gitlab"
.bottom
=
paginate
@projects
,
theme:
"gitlab"
%hr
%hr
...
...
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