Commit 06a4fd10 authored by Valery Sizov's avatar Valery Sizov

css improvements

parent fd2c0fe4
...@@ -39,7 +39,7 @@ class @AwardsHandler ...@@ -39,7 +39,7 @@ class @AwardsHandler
nodes.push("<div class='counter'>1") nodes.push("<div class='counter'>1")
nodes.push("</div></div>") nodes.push("</div></div>")
$(".awards").append(nodes.join("\n")) $(".awards-controls").before(nodes.join("\n"))
getImage: (emoji) -> getImage: (emoji) ->
$("li." + emoji).html() $("li." + emoji).html()
......
...@@ -128,12 +128,22 @@ ...@@ -128,12 +128,22 @@
} }
} }
#add-award { .awards-controls {
font-size: 20px; height: 25px;
border-radius: 5px; width: 28px;
float: left; float: left;
width: 50px; padding: 0 0 5px 5px;
font-weight: bold; line-height: 1;
#add-award {
font-size: 27px;
&:hover {
text-decoration: none;
}
&:link {
text-decoration: none;
}
}
} }
.awards-menu{ .awards-menu{
......
...@@ -12,9 +12,9 @@ class NotesFinder ...@@ -12,9 +12,9 @@ class NotesFinder
when "commit" when "commit"
project.notes.for_commit_id(target_id).not_inline project.notes.for_commit_id(target_id).not_inline
when "issue" when "issue"
project.issues.find(target_id).notes.inc_author project.issues.find(target_id).notes.nonawards.inc_author
when "merge_request" when "merge_request"
project.merge_requests.find(target_id).mr_and_commit_notes.inc_author project.merge_requests.find(target_id).mr_and_commit_notes.nonawards.inc_author
when "snippet", "project_snippet" when "snippet", "project_snippet"
project.snippets.find(target_id).notes project.snippets.find(target_id).notes
else else
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.counter .counter
= vote.last.count = vote.last.count
%button.dropdown .dropdown.awards-controls
%a#add-award{"data-toggle" => "dropdown", "data-target" => "#", "href" => "#"} + %a#add-award{"data-toggle" => "dropdown", "data-target" => "#", "href" => "#"} +
%ul.dropdown-menu.awards-menu %ul.dropdown-menu.awards-menu
- ["100", "blush", "heart", "smile", "rage", "beers", "thumbsup", "disappointed", "ok_hand", "helicopter"].each do |emoji| - ["100", "blush", "heart", "smile", "rage", "beers", "thumbsup", "disappointed", "ok_hand", "helicopter"].each do |emoji|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment