[refs #90] fixed merging errors

This commit is contained in:
Alexander Machehin 2012-05-04 16:56:11 +06:00
parent 178dbdc5f0
commit c5731ff8dd
5 changed files with 24 additions and 22 deletions

View File

@ -1,5 +1,5 @@
# -*- encoding : utf-8 -*-
class PullRequestsController < ApplicationController
class Projects::PullRequestsController < Projects::BaseController
before_filter :authenticate_user!
load_resource :project
#load_and_authorize_resource :pull_request, :through => :project, :find_by => :serial_id #FIXME Disable for development

View File

@ -1,6 +1,6 @@
-set_meta_tags :title => [title_object(@project), t('.title')]
= render :partial => 'projects/submenu'
-#render :partial => 'pull_requests/index_sidebar'
= render :partial => 'submenu'
-#render :partial => 'index_sidebar'
%ul.nav.nav-tabs
%li
%a{"data-toggle" => "tab", :href => "#show"} Home

View File

@ -1,5 +1,5 @@
-set_meta_tags :title => [title_object(@project), t('.title')]
= render :partial => 'projects/submenu'
= render :partial => 'submenu'
%h3.bpadding10= raw t '.new', {:base => @base, :head => @head}
=form_for @pull, :url => project_pull_requests_path, :html => {:class => 'well well-large'} do |f|

View File

@ -1,10 +1,11 @@
en:
pull_requests:
new:
new: 'Create a pull request into <span class="label label-info font14">%{base}</span> from <span class="label label-info font14">%{head}</span>'
base_ref: 'Base'
head_ref: 'Head'
refs: 'branch · tag · commit'
base_project: 'Base project'
head_project: 'Head project'
submit: 'Send pull request'
projects:
pull_requests:
new:
new: 'Create a pull request into <span class="label label-info font14">%{base}</span> from <span class="label label-info font14">%{head}</span>'
base_ref: 'Base'
head_ref: 'Head'
refs: 'branch · tag · commit'
base_project: 'Base project'
head_project: 'Head project'
submit: 'Send pull request'

View File

@ -1,10 +1,11 @@
ru:
pull_requests:
new:
new: 'Создать запрос на слияние в <span class="label label-info font14">%{base}</span> из <span class="label label-info font14">%{head}</span>'
base_ref: 'База'
head_ref: 'Источник'
refs: 'branch · tag · commit'
base_project: 'Базовый проект'
head_project: 'Проект-источник'
submit: 'Создать запрос на слияние'
projects:
pull_requests:
new:
new: 'Создать запрос на слияние в <span class="label label-info font14">%{base}</span> из <span class="label label-info font14">%{head}</span>'
base_ref: 'База'
head_ref: 'Источник'
refs: 'branch · tag · commit'
base_project: 'Базовый проект'
head_project: 'Проект-источник'
submit: 'Создать запрос на слияние'