diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index b26ffcf2d9295d49922e6f13478c5523d65fdc37..dd897ed39bbb248f784f57876f78b0cb8a3c9ff3 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -548,9 +548,8 @@ h4.dash-tabs { h4.middle-panel { margin: 0; border-bottom: 1px solid #ccc; - padding: 10px 10px; + padding: 10px 20px; font-size: 11px; - padding-left:20px; background: #F7F7F7; height:30px; diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 8d9adedfbcfa8da1aea285d16a73a5c878329f41..1f1da559abfc31f618f78d1d061cef62cb931ae7 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -9,7 +9,6 @@ class ProjectsController < ApplicationController before_filter :authorize_read_project!, :except => [:index, :new, :create] before_filter :authorize_admin_project!, :only => [:edit, :update, :destroy] before_filter :require_non_empty_project, :only => [:blob, :tree, :graph] - before_filter :load_refs, :only => :tree # load @branch, @tag & @ref def index source = current_user.projects diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2f982dac949c419a1475dcef4d2f5329e820d63e..76323b271e19059c086a3c81a0a64fcd5841df11 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -53,7 +53,7 @@ module ApplicationHelper [ "Tag", @project.tags ] ] - grouped_options_for_select(options, @ref) + grouped_options_for_select(options, @ref || @project.default_branch) end def markdown(text)