summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-11-09 06:37:01 -0500
committergitlabhq <m@gitlabhq.com>2011-11-09 06:37:01 -0500
commitb78f6581434b30f18e694e57c7427ad764fc26f4 (patch)
treedf4e34cd6dc70c828dc9ccef76f5582b23fa62dc
parenta44e329222516573ae3a9c255801bd057ec2fd36 (diff)
downloadgitlab-ce-b78f6581434b30f18e694e57c7427ad764fc26f4.tar.gz
dashboard beautify
-rw-r--r--app/assets/stylesheets/projects.css.scss29
-rw-r--r--app/views/projects/_recent_commits.html.haml7
-rw-r--r--app/views/projects/_recent_messages.html.haml12
3 files changed, 27 insertions, 21 deletions
diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss
index 8c5d8a683d9..10885d3bd0a 100644
--- a/app/assets/stylesheets/projects.css.scss
+++ b/app/assets/stylesheets/projects.css.scss
@@ -443,16 +443,6 @@ input.ssh_project_url {
padding: 10px;
}
-.commit,
-.message{
- .author {
- background: #eaeaea;
- color: #333;
- border: 1px solid #aaa;
- padding:1px 2px;
- margin-right:5px;
- }
-}
/* Note textare */
#note_note {
@@ -673,4 +663,21 @@ body.project-page #notes-list .note span.note-author strong{font-weight: bold; f
}
}
-.message .note-title p { margin-bottom:0px; }
+//.message .note-title p { margin-bottom:0px; }
+
+.commit,
+.message {
+ .title {
+ color:#666;
+ a {
+ color:#666 !important;
+ }
+ p {
+ margin-top:0px;
+ }
+ }
+
+ .author {
+ color: #999
+ }
+}
diff --git a/app/views/projects/_recent_commits.html.haml b/app/views/projects/_recent_commits.html.haml
index 385fa4b6eed..5e9eca8d00a 100644
--- a/app/views/projects/_recent_commits.html.haml
+++ b/app/views/projects/_recent_commits.html.haml
@@ -21,12 +21,11 @@
= image_tag gravatar_icon(commit.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
- else
= image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
- %p{:style => "margin-bottom: 3px;"}
- %strong
- = link_to truncate(commit.safe_message, :length => fixed_mode? ? 40 : 100), project_commit_path(@project, :id => commit.id)
+ .title
+ %p= link_to truncate(commit.safe_message, :length => fixed_mode? ? 40 : 100), project_commit_path(@project, :id => commit.id)
%span
- %span.note-author
+ %span.author
%strong= commit.author.name.force_encoding("UTF-8")
%cite.cgray
= time_ago_in_words(commit.committed_date)
diff --git a/app/views/projects/_recent_messages.html.haml b/app/views/projects/_recent_messages.html.haml
index 00052963e38..1a8c8c972e6 100644
--- a/app/views/projects/_recent_messages.html.haml
+++ b/app/views/projects/_recent_messages.html.haml
@@ -13,15 +13,15 @@
%td
%div.message
= image_tag gravatar_icon(note.author_email), :class => "left", :width => 40, :style => "padding-right:5px;"
- %div.note-author
- %strong= note.author_name
- %cite.cgray
- = time_ago_in_words(note.updated_at)
- ago
- %div.note-title
+ %div.title
= link_to markdown(truncate(note.note, :length => fixed_mode? ? 40 : 100)), dashboard_feed_path(@project, parent) + "#note_#{note.id}"
- if note.attachment.url
%br
Attachment:
= link_to note.attachment_identifier, note.attachment.url
+ %div.author
+ %strong= note.author_name
+ %cite.cgray
+ = time_ago_in_words(note.updated_at)
+ ago
%br