CSS improvements & refactoring
This commit is contained in:
parent
b58326afc6
commit
d3862c0e57
10 changed files with 156 additions and 183 deletions
|
@ -8,9 +8,9 @@
|
|||
%li
|
||||
%a{:href => "#README"} README
|
||||
%li
|
||||
%a{:href => "#Projects"} Projects
|
||||
%a{:href => "#projects"} Projects
|
||||
%li
|
||||
%a{:href => "#Users"} Users
|
||||
%a{:href => "#users"} Users
|
||||
|
||||
.file_holder#README
|
||||
.file_title
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%h3 New key
|
||||
%h3.page_title New key
|
||||
%hr
|
||||
= render 'form'
|
||||
|
||||
|
@ -11,4 +11,4 @@
|
|||
if( key_mail && key_mail.length > 0 && title.val() == '' ){
|
||||
$('#key_title').val( key_mail );
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
%tr.line_notes_row.reply
|
||||
%td{:colspan => 3}
|
||||
%i.icon-comment
|
||||
= link_to "Reply", "#", :class => "line_note_reply_link", "line_code" => line_code, :title => "Add note for this line"
|
||||
|
|
|
@ -37,9 +37,11 @@
|
|||
= render :partial => "refs/submodule_item", :locals => { :content => content }
|
||||
|
||||
- if content = contents.select{ |c| c.is_a?(Grit::Blob) and c.name =~ /^readme/i }.first
|
||||
#tree-readme-holder
|
||||
%h3= content.name
|
||||
.readme
|
||||
.file_holder#README
|
||||
.file_title
|
||||
%i.icon-file
|
||||
= content.name
|
||||
.file_content.wiki
|
||||
- if content.name =~ /\.(md|markdown)$/i
|
||||
= preserve do
|
||||
= markdown(content.data)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.view_file
|
||||
.view_file_header
|
||||
.file_holder
|
||||
.file_title
|
||||
%i.icon-file
|
||||
%span.file_name
|
||||
= name
|
||||
|
@ -10,26 +10,28 @@
|
|||
= link_to "blame", blame_file_project_ref_path(@project, @ref, :path => params[:path]), :class => "btn very_small"
|
||||
- if file.text?
|
||||
- if name =~ /\.(md|markdown)$/i
|
||||
#tree-readme-holder
|
||||
.readme
|
||||
= preserve do
|
||||
= markdown(file.data)
|
||||
.file_content.wiki
|
||||
= preserve do
|
||||
= markdown(file.data)
|
||||
- else
|
||||
.view_file_content
|
||||
.file_content.code
|
||||
- unless file.empty?
|
||||
%div{:class => current_user.dark_scheme ? "black" : "white"}
|
||||
= preserve do
|
||||
= raw file.colorize(options: { linenos: 'True'})
|
||||
- else
|
||||
%h4.nothing_here_message Empty file
|
||||
|
||||
- elsif file.image?
|
||||
.view_file_content_image
|
||||
.file_content.image_file
|
||||
%img{ :src => "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"}
|
||||
|
||||
- else
|
||||
%center
|
||||
= link_to blob_project_ref_path(@project, @ref, :path => params[:path]) do
|
||||
%div.padded
|
||||
%br
|
||||
= image_tag "download.png", :width => 64
|
||||
%h3
|
||||
Download (#{file.mb_size})
|
||||
.file_content.blob_file
|
||||
%center
|
||||
= link_to blob_project_ref_path(@project, @ref, :path => params[:path]) do
|
||||
%div.padded
|
||||
%br
|
||||
= image_tag "download.png", :width => 64
|
||||
%h3
|
||||
Download (#{file.mb_size})
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
%li= link
|
||||
.clear
|
||||
|
||||
.view_file.blame_file
|
||||
.view_file_header
|
||||
.file_holder
|
||||
.file_title
|
||||
%i.icon-file
|
||||
%span.file_name
|
||||
= @tree.name
|
||||
|
@ -21,7 +21,7 @@
|
|||
= link_to "raw", blob_project_ref_path(@project, @ref, :path => params[:path]), :class => "btn very_small", :target => "_blank"
|
||||
= link_to "history", project_commits_path(@project, :path => params[:path], :ref => @ref), :class => "btn very_small"
|
||||
= link_to "source", tree_file_project_ref_path(@project, @ref, :path => params[:path]), :class => "btn very_small"
|
||||
.view_file_content
|
||||
.file_content.blame
|
||||
%table
|
||||
- @blame.each do |commit, lines|
|
||||
- commit = Commit.new(commit)
|
||||
|
@ -29,7 +29,7 @@
|
|||
%td.author
|
||||
= image_tag gravatar_icon(commit.author_email, 16)
|
||||
= commit.author_name
|
||||
%td.commit
|
||||
%td.blame_commit
|
||||
|
||||
= link_to project_commit_path(@project, :id => commit.id) do
|
||||
%code= commit.id.to_s[0..10]
|
||||
|
|
|
@ -7,16 +7,14 @@
|
|||
= link_to "Edit", edit_project_snippet_path(@project, @snippet), :class => "btn small right"
|
||||
|
||||
%br
|
||||
#tree-holder
|
||||
#tree-content-holder
|
||||
.view_file
|
||||
.view_file_header
|
||||
%i.icon-file
|
||||
%strong= @snippet.file_name
|
||||
%span.options
|
||||
= link_to "raw", raw_project_snippet_path(@project, @snippet), :class => "btn very_small", :target => "_blank"
|
||||
.view_file_content
|
||||
%div{:class => current_user.dark_scheme ? "black" : ""}
|
||||
= raw @snippet.colorize(options: { linenos: 'True'})
|
||||
.file_holder
|
||||
.file_title
|
||||
%i.icon-file
|
||||
%strong= @snippet.file_name
|
||||
%span.options
|
||||
= link_to "raw", raw_project_snippet_path(@project, @snippet), :class => "btn very_small", :target => "_blank"
|
||||
.file_content.code
|
||||
%div{:class => current_user.dark_scheme ? "black" : ""}
|
||||
= raw @snippet.colorize(options: { linenos: 'True'})
|
||||
|
||||
= render "notes/notes", :tid => @snippet.id, :tt => "snippet"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue