fix default branch

This commit is contained in:
Dmitriy Zaporozhets 2011-12-12 23:17:28 +02:00
parent 04a908f6a5
commit 8426846d6d
3 changed files with 2 additions and 4 deletions

View file

@ -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;

View file

@ -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

View file

@ -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)