[issue #195] Fixes.
* Added border to gutter in file preview * Added "empty repo" message * Fixed one of bugs with tree/branch selector
This commit is contained in:
parent
43c10ee812
commit
318dc72d29
|
@ -299,7 +299,7 @@ table.tablesorter tbody td a .issue_title {
|
||||||
#output.formatted {
|
#output.formatted {
|
||||||
width: auto;
|
width: auto;
|
||||||
font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
|
font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
|
||||||
padding: 10px;
|
padding: 10px 5px;
|
||||||
margin-left: 45px;
|
margin-left: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -309,4 +309,10 @@ table.tablesorter tbody td a .issue_title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.gutter {
|
||||||
|
border-right: 1px solid #CCCCCC !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.tablesorter tr td.centered {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ class Git::TreesController < Git::BaseController
|
||||||
# @commit = @git_repository.commits(@treeish, 1).first
|
# @commit = @git_repository.commits(@treeish, 1).first
|
||||||
# Raises Grit::Git::GitTimeout
|
# Raises Grit::Git::GitTimeout
|
||||||
@commit = @branch.present? ? @branch.commit() : @git_repository.log(@treeish, @path, :max_count => 1).first
|
@commit = @branch.present? ? @branch.commit() : @git_repository.log(@treeish, @path, :max_count => 1).first
|
||||||
|
render :template => "git/repositories/empty" and return unless @commit
|
||||||
|
|
||||||
if @path
|
if @path
|
||||||
@path.force_encoding(Encoding::ASCII_8BIT)
|
@path.force_encoding(Encoding::ASCII_8BIT)
|
||||||
|
|
|
@ -1 +1,29 @@
|
||||||
%h3= I18n.t("layout.git.repositories.empty")
|
= render :partial => 'projects/submenu'
|
||||||
|
= render :partial => 'projects/repo_block', :locals => {:project => @project}
|
||||||
|
|
||||||
|
.description
|
||||||
|
%h3= t("layout.projects.about_subheader")
|
||||||
|
%p
|
||||||
|
= @project.description
|
||||||
|
= link_to t('layout.read_more'), '#'
|
||||||
|
.both
|
||||||
|
|
||||||
|
#repo-wrapper
|
||||||
|
|
||||||
|
%h3= t("layout.projects.files_in_project")
|
||||||
|
.files
|
||||||
|
.l
|
||||||
|
= render :partial => 'git/shared/whereami'
|
||||||
|
.both
|
||||||
|
|
||||||
|
%table#myTable.tablesorter.project{:cellpadding => "0", :cellspacing => "0"}
|
||||||
|
%thead
|
||||||
|
%tr
|
||||||
|
%th.th1= t("layout.projects.filename")
|
||||||
|
%th.th2= t("layout.projects.age")
|
||||||
|
%th.th3= t("layout.projects.message")
|
||||||
|
%th.th4= t("layout.projects.author")
|
||||||
|
%tbody
|
||||||
|
%tr
|
||||||
|
%td.centered{:colspan => 4}
|
||||||
|
%h3= I18n.t("layout.git.repositories.empty")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.lineForm.fork
|
.lineForm.fork
|
||||||
= form_tag '', :id => 'branch_changer', :'data-action' => controller_name do
|
= select_tag :branch, branch_selector_options(project),
|
||||||
= select_tag :branch, branch_selector_options(project),
|
:class => 'sel80', :id => 'branch_selector'
|
||||||
:class => 'sel80', :id => 'branch_selector'
|
%form{ :action => '', :method => :get, :id => 'branch_changer', :'data-action' => "#{controller_name}"}
|
||||||
.fork
|
.fork
|
||||||
%p= t('layout.projects.current_branch')+':'
|
%p= t('layout.projects.current_branch')+':'
|
||||||
.both
|
.both
|
||||||
|
|
Loading…
Reference in New Issue