Images refactored, Feed icon replaced, Fixed comment form focus

This commit is contained in:
randx 2012-05-27 01:09:44 +03:00
parent c4b7794352
commit d29ec9d773
18 changed files with 26 additions and 19 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 801 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 B

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 599 B

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

View File

@ -32,9 +32,9 @@ init:
$("#submit_note").removeAttr("disabled");
})
$("#note_note").live("click", function(){
$("#note_note").live("focus", function(){
$(this).css("height", "100px");
$('.attach_holder').show();
$('.note_advanced_opts').show();
});
$("#note_attachment").change(function(e){

View File

@ -420,6 +420,8 @@ a.project-update.titled {
cursor: move;
height: 70%;
overflow: hidden;
background:white;
border: 1px solid $style_color;
}
@ -960,3 +962,10 @@ li.note {
}
}
}
.rss-icon {
img {
width:24px;
vertical-align:top;
}
}

View File

@ -100,7 +100,6 @@ class ProjectsController < ApplicationController
end
def graph
render_full_content
@days_json, @commits_json = GraphCommit.to_graph(project)
end

View File

@ -23,10 +23,9 @@
- if current_page?(project_commits_path(@project)) && current_user.private_token
%li.right
%span
= link_to project_commits_path(@project, :atom, { :private_token => current_user.private_token, :ref => @ref }), :class => "btn" do
feed
= image_tag "Rss-UI.PNG", :width => 14, :title => "feed"
%span.rss-icon
= link_to project_commits_path(@project, :atom, { :private_token => current_user.private_token, :ref => @ref }), :title => "Feed" do
= image_tag "rss_ui.png", :title => "feed"
:javascript

View File

@ -5,3 +5,7 @@
%li{:class => "#{'active' if current_page?(project_milestones_path(@project))}"}
= link_to project_milestones_path(@project), :class => "tab" do
Milestones
%li.right
%span.rss-icon
= link_to project_issues_path(@project, :atom, { :private_token => current_user.private_token }) do
= image_tag "rss_ui.png", :title => "feed"

View File

@ -2,10 +2,7 @@
.issues_content
%h3
Issues
%span.rss-icon
= link_to project_issues_path(@project, :atom, { :private_token => current_user.private_token }) do
= image_tag "Rss-UI.PNG", :width => 16, :title => "feed"
%small (#{@issues.total_count})
.right
.span5
- if can? current_user, :write_issue, @project

View File

@ -10,7 +10,7 @@
= f.text_area :note, :size => 255
%p.hint Markdown is enabled.
.row.note_advanced_opts
.row.note_advanced_opts.hide
.span4
%h5 Notify via email:
.clearfix

View File

@ -1,7 +1,6 @@
%h3 Network Graph
%br
#holder.graph.well
#holder.graph
:javascript
var chunk1={commits:#{@commits_json}};
var days=#{@days_json};

View File

@ -29,7 +29,7 @@
- else
%center
= link_to blob_project_ref_path(@project, @ref, :path => params[:path]) do
%div
%div.padded
%br
= image_tag "download.png", :width => 64
%h3

View File

@ -37,17 +37,17 @@ function branchGraph(holder) {
r = Raphael("holder", cw, ch),
top = r.set();
var cuday = 0, cumonth = "";
r.rect(0, 0, days.length * 20 + 20, 20).attr({fill: "#474D57"});
r.rect(0, 20, days.length * 20 + 20, 20).attr({fill: "#f7f7f7"});
r.rect(0, 0, days.length * 20 + 80, 30).attr({fill: "#FFF"});
r.rect(0, 30, days.length * 20 + 80, 20).attr({fill: "#f1f1f1"});
for (mm = 0; mm < days.length; mm++) {
if(days[mm] != null){
if(cuday != days[mm][0]){
r.text(10 + mm * 20, 30, days[mm][0]).attr({font: "12px Fontin-Sans, Arial", fill: "#444"});
r.text(10 + mm * 20, 40, days[mm][0]).attr({font: "14px Fontin-Sans, Arial", fill: "#444"});
cuday = days[mm][0]
}
if(cumonth != days[mm][1]){
r.text(10 + mm * 20, 10, days[mm][1]).attr({font: "12px Fontin-Sans, Arial", fill: "#444"});
r.text(10 + mm * 20, 15, days[mm][1]).attr({font: "14px Fontin-Sans, Arial", fill: "#474D57"});
cumonth = days[mm][1]
}