Merge pull request #361 from warpc/340-titles
[Refs #340] Add title to all page in ABF
This commit is contained in:
commit
c75f857014
|
@ -1,15 +1,5 @@
|
||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
def choose_title
|
|
||||||
title = if ['personal_repositories', 'downloads'].include?(controller.controller_name)
|
|
||||||
APP_CONFIG['repo_project_name']
|
|
||||||
else
|
|
||||||
APP_CONFIG['project_name']
|
|
||||||
end
|
|
||||||
|
|
||||||
return title
|
|
||||||
end
|
|
||||||
|
|
||||||
def layout_class
|
def layout_class
|
||||||
case
|
case
|
||||||
when params[:controller] == 'issues' && params[:action] == 'new'
|
when params[:controller] == 'issues' && params[:action] == 'new'
|
||||||
|
@ -26,4 +16,18 @@ module ApplicationHelper
|
||||||
content_for?(:sidebar) ? 'right' : 'all'
|
content_for?(:sidebar) ? 'right' : 'all'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def title_object object
|
||||||
|
name = object.class == Group ? object.uname : object.name
|
||||||
|
object_name = t "activerecord.models.#{object.class.name.downcase}"
|
||||||
|
case object.class.name
|
||||||
|
when 'Project', 'Platform'
|
||||||
|
"#{object_name} #{object.owner.uname}/#{object.name}"
|
||||||
|
when 'Repository', 'Product'
|
||||||
|
"#{object_name} #{object.name} - #{title_object object.platform}"
|
||||||
|
when 'Group'
|
||||||
|
"#{object_name} #{object.uname}"
|
||||||
|
else object.class.name
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => nil
|
||||||
%h3.fix= t("layout.activity_feed.header")
|
%h3.fix= t("layout.activity_feed.header")
|
||||||
=render 'list'
|
=render 'list'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%h3.fix= t("layout.users.list_header")
|
%h3.fix= title t("layout.users.list_header")
|
||||||
|
|
||||||
- columns = [{:type => 'html'}, {:type => 'html'}, {:type => 'html'}, {:type => 'html', :sortable => false, :searchable => false}, {:type => nil, :sortable => false, :searchable => false, :class => 'buttons'}]
|
- columns = [{:type => 'html'}, {:type => 'html'}, {:type => 'html'}, {:type => 'html', :sortable => false, :searchable => false}, {:type => nil, :sortable => false, :searchable => false, :class => 'buttons'}]
|
||||||
= raw datatable(columns, {:sort_by => "[0, 'asc']", :processing => t("layout.processing"), :search_label => t("layout.search.header"),
|
= raw datatable(columns, {:sort_by => "[0, 'asc']", :processing => t("layout.processing"), :search_label => t("layout.search.header"),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.block
|
.block
|
||||||
.content
|
.content
|
||||||
%h2.title= t("layout.users.new_header")
|
%h2.title= title t("layout.users.new_header")
|
||||||
.inner
|
.inner
|
||||||
= form_for @user, :url => create_user_path, :html => { :class => :form } do |f|
|
= form_for @user, :url => create_user_path, :html => { :class => :form } do |f|
|
||||||
= render :partial => "users/form", :locals => {:f => f}
|
= render :partial => "users/form", :locals => {:f => f}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%h3.fix.bpadding10= @user.uname
|
%h3.fix.bpadding10= title @user.uname
|
||||||
|
|
||||||
= form_for @user, :url => update_user_path(@user), :html => { :class => :form } do |f|
|
= form_for @user, :url => update_user_path(@user), :html => { :class => :form } do |f|
|
||||||
= render :partial => "users/form", :locals => {:f => f}
|
= render :partial => "users/form", :locals => {:f => f}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => t('.title')
|
||||||
/ #myTable
|
/ #myTable
|
||||||
%table.tablesorter{:cellpadding => "0", :cellspacing => "0"}
|
%table.tablesorter{:cellpadding => "0", :cellspacing => "0"}
|
||||||
%thead
|
%thead
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('layout.build_lists.new_header')]
|
||||||
= form_for [@project, @build_list], :html => { :class => :form, :method => :post } do |f|
|
= form_for [@project, @build_list], :html => { :class => :form, :method => :post } do |f|
|
||||||
%section.left
|
%section.left
|
||||||
%h3= t("activerecord.attributes.build_list.project_version")
|
%h3= t("activerecord.attributes.build_list.project_version")
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@build_list.project), t('activerecord.models.build_list')]
|
||||||
.notify.blue
|
.notify.blue
|
||||||
%div{:class => build_list_status_color(@build_list.status)}
|
%div{:class => build_list_status_color(@build_list.status)}
|
||||||
%p= @build_list.human_status
|
%p= @build_list.human_status
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('layout.projects.members')]
|
||||||
= render :partial => 'projects/sidebar'
|
= render :partial => 'projects/sidebar'
|
||||||
= render :partial => 'projects/submenu'
|
= render :partial => 'projects/submenu'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@comment.project), t('layout.comments.edit_header')]
|
||||||
.block
|
.block
|
||||||
.secondary-navigation
|
.secondary-navigation
|
||||||
%ul.wat-cf
|
%ul.wat-cf
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.block
|
.block
|
||||||
.content
|
.content
|
||||||
%h2.title
|
%h2.title
|
||||||
= t("layout.downloads.title")
|
= title t("layout.downloads.title")
|
||||||
.inner
|
.inner
|
||||||
%h3= t("layout.downloads.message")
|
%h3= t("layout.downloads.message")
|
||||||
.inner
|
.inner
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%li.first.active= link_to t("layout.event_logs.list"), event_logs_path
|
%li.first.active= link_to t("layout.event_logs.list"), event_logs_path
|
||||||
.content
|
.content
|
||||||
%h2.title
|
%h2.title
|
||||||
= t("layout.event_logs.list_header")
|
= title t("layout.event_logs.list_header")
|
||||||
.inner
|
.inner
|
||||||
%table.table
|
%table.table
|
||||||
%tr
|
%tr
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => "#{title_object @project} #{t('at') if @branch} #{@branch.try :name}"
|
||||||
= render :partial => 'projects/submenu'
|
= render :partial => 'projects/submenu'
|
||||||
= render :partial => 'projects/repo_block', :locals => {:project => @project}
|
= render :partial => 'projects/repo_block', :locals => {:project => @project}
|
||||||
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), "#{t :title_editing} #{@project.name}/#{@path} #{t('at') if @branch} #{@branch.try :name}"]
|
||||||
= render :partial => "git/blobs/editor", :layout => 'projects/show'
|
= render :partial => "git/blobs/editor", :layout => 'projects/show'
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), "#{@project.name}/#{@path} #{t('at') if @branch} #{@branch.try :name}"]
|
||||||
= render :partial => "git/blobs/show", :layout => 'projects/show'
|
= render :partial => "git/blobs/show", :layout => 'projects/show'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), "#{t '.title'} #{t('at') if @branch} #{@branch.try :name}"]
|
||||||
= render :partial => 'projects/submenu'
|
= render :partial => 'projects/submenu'
|
||||||
= render :partial => 'projects/repo_block', :locals => {:project => @project}
|
= render :partial => 'projects/repo_block', :locals => {:project => @project}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), shortest_hash_id(@commit.id), @commit.message]
|
||||||
= render :partial => 'projects/submenu'
|
= render :partial => 'projects/submenu'
|
||||||
|
|
||||||
.description
|
.description
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => title_object(@project)
|
||||||
= render :partial => 'projects/submenu'
|
= render :partial => 'projects/submenu'
|
||||||
= render :partial => 'projects/repo_block', :locals => {:project => @project}
|
= render :partial => 'projects/repo_block', :locals => {:project => @project}
|
||||||
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
-set_meta_tags :title => "#{title_object @project} #{t('at') if @branch} #{@branch.try :name}"
|
||||||
= render :partial => "git/trees/show", :layout => 'projects/show'
|
= render :partial => "git/trees/show", :layout => 'projects/show'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@group), t('layout.groups.edit')]
|
||||||
= form_for @group, :html => { :class => :form, :multipart => true } do |f|
|
= form_for @group, :html => { :class => :form, :multipart => true } do |f|
|
||||||
= render :partial => "form", :locals => {:f => f}
|
= render :partial => "form", :locals => {:f => f}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => t('layout.groups.list_header')
|
||||||
= link_to t("layout.groups.new"), new_group_path, :class => "button"
|
= link_to t("layout.groups.new"), new_group_path, :class => "button"
|
||||||
%table#myTable.tablesorter.group-list{:cellpadding => "0", :cellspacing => "0"}
|
%table#myTable.tablesorter.group-list{:cellpadding => "0", :cellspacing => "0"}
|
||||||
%thead
|
%thead
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%h3.bpadding10= t("layout.groups.new_header")
|
%h3.bpadding10= title t("layout.groups.new_header")
|
||||||
= form_for @group, :url => groups_path do |f|
|
= form_for @group, :url => groups_path do |f|
|
||||||
= render :partial => "form", :locals => {:f => f}
|
= render :partial => "form", :locals => {:f => f}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => title_object(@group)
|
||||||
.all.verybigpadding
|
.all.verybigpadding
|
||||||
%h3= @group.name
|
%h3= @group.name
|
||||||
%h4= t("activerecord.attributes.group.description") + ":"
|
%h4= t("activerecord.attributes.group.description") + ":"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('.title')]
|
||||||
-render :partial => 'projects/submenu'
|
-render :partial => 'projects/submenu'
|
||||||
-render :partial => 'issues/index_sidebar'
|
-render :partial => 'issues/index_sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('layout.issues.create_header')]
|
||||||
-render :partial => 'projects/submenu'
|
-render :partial => 'projects/submenu'
|
||||||
-render :partial => 'issues/manage_sidebar'
|
-render :partial => 'issues/manage_sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), @issue.title]
|
||||||
-render :partial => 'projects/submenu'
|
-render :partial => 'projects/submenu'
|
||||||
-render :partial => 'issues/manage_sidebar'
|
-render :partial => 'issues/manage_sidebar'
|
||||||
-content_for :right_nopadding do
|
-content_for :right_nopadding do
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
%html
|
%html
|
||||||
%head
|
%head
|
||||||
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
||||||
%title= choose_title
|
|
||||||
= stylesheet_link_tag 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css', :media => 'screen, projection'
|
= stylesheet_link_tag 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css', :media => 'screen, projection'
|
||||||
= stylesheet_link_tag "application"
|
= stylesheet_link_tag "application"
|
||||||
/[if lt IE 9]
|
/[if lt IE 9]
|
||||||
= javascript_include_tag 'http://html5shiv.googlecode.com/svn/trunk/html5.js'
|
= javascript_include_tag 'http://html5shiv.googlecode.com/svn/trunk/html5.js'
|
||||||
= javascript_include_tag "application"
|
= javascript_include_tag "application"
|
||||||
= csrf_meta_tag
|
= csrf_meta_tag
|
||||||
|
= display_meta_tags :site => APP_CONFIG['project_name'], :reverse => true, :separator => '-'
|
||||||
|
|
||||||
%body
|
%body
|
||||||
.wrap{:class => content_for?(:sidebar) ? 'columns' : ''}
|
.wrap{:class => content_for?(:sidebar) ? 'columns' : ''}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
%html
|
%html
|
||||||
%head
|
%head
|
||||||
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "content-type"}
|
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "content-type"}
|
||||||
= display_meta_tags :site => APP_CONFIG['project_name']
|
|
||||||
- if controller_name == 'sessions' && action_name == 'new'
|
- if controller_name == 'sessions' && action_name == 'new'
|
||||||
= stylesheet_link_tag "login"
|
= stylesheet_link_tag "login"
|
||||||
- elsif ['registrations', 'passwords'].include?(controller_name) && ['new', 'create', 'edit', 'update'].include?(action_name)
|
- elsif ['registrations', 'passwords'].include?(controller_name) && ['new', 'create', 'edit', 'update'].include?(action_name)
|
||||||
|
@ -11,6 +10,7 @@
|
||||||
= javascript_include_tag 'http://html5shiv.googlecode.com/svn/trunk/html5.js'
|
= javascript_include_tag 'http://html5shiv.googlecode.com/svn/trunk/html5.js'
|
||||||
= javascript_include_tag "login"
|
= javascript_include_tag "login"
|
||||||
= csrf_meta_tag
|
= csrf_meta_tag
|
||||||
|
= display_meta_tags :site => APP_CONFIG['project_name'], :reverse => true, :separator => '-'
|
||||||
|
|
||||||
%body
|
%body
|
||||||
-# render :partial => "layouts/flashes"
|
-# render :partial => "layouts/flashes"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@group), t('layout.groups.members')]
|
||||||
= form_tag group_members_path(@group), :id => 'members_form', :delete_url => remove_group_members_path(@group) do
|
= form_tag group_members_path(@group), :id => 'members_form', :delete_url => remove_group_members_path(@group) do
|
||||||
= hidden_field_tag "_method", "post"
|
= hidden_field_tag "_method", "post"
|
||||||
%table.tablesorter{:cellpadding => "0", :cellspacing => "0"}
|
%table.tablesorter{:cellpadding => "0", :cellspacing => "0"}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@repository), t('layout.personal_repositories.settings')]
|
||||||
.block
|
.block
|
||||||
.secondary-navigation
|
.secondary-navigation
|
||||||
%ul.wat-cf
|
%ul.wat-cf
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@repository), t('activerecord.models.repository')]
|
||||||
.block
|
.block
|
||||||
.secondary-navigation
|
.secondary-navigation
|
||||||
%ul.wat-cf
|
%ul.wat-cf
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@platform), t('layout.platforms.clone_header')]
|
||||||
= render :partial => 'submenu'
|
= render :partial => 'submenu'
|
||||||
= render :partial => 'sidebar'
|
= render :partial => 'sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@platform), t('layout.platforms.edit')]
|
||||||
= render :partial => 'submenu'
|
= render :partial => 'submenu'
|
||||||
= render :partial => 'sidebar'
|
= render :partial => 'sidebar'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
-set_meta_tags :title => t('flash.exception_message')
|
|
@ -1,3 +1,3 @@
|
||||||
= link_to t("layout.platforms.new"), new_platform_path, :class => 'button' if can? :create, Platform
|
= link_to title(t "layout.platforms.new"), new_platform_path, :class => 'button' if can? :create, Platform
|
||||||
= render :partial => 'platforms/list', :object => @platforms
|
= render :partial => 'platforms/list', :object => @platforms
|
||||||
= will_paginate @platforms
|
= will_paginate @platforms
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@platform), t('layout.platforms.members')]
|
||||||
= render :partial => 'submenu'
|
= render :partial => 'submenu'
|
||||||
= render :partial => 'sidebar'
|
= render :partial => 'sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%h3= t("layout.platforms.new_header")
|
%h3= title t("layout.platforms.new_header")
|
||||||
|
|
||||||
= form_for :platform, :url => platforms_path, :html => { :class => :form } do |f|
|
= form_for :platform, :url => platforms_path, :html => { :class => :form } do |f|
|
||||||
= render :partial => "form", :locals => {:f => f}
|
= render :partial => "form", :locals => {:f => f}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => title_object(@platform)
|
||||||
= render :partial => 'submenu'
|
= render :partial => 'submenu'
|
||||||
= render :partial => 'sidebar'
|
= render :partial => 'sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(current_user.repository), t('layout.personal_repositories.private_users')]
|
||||||
.block
|
.block
|
||||||
.secondary-navigation
|
.secondary-navigation
|
||||||
%ul.wat-cf
|
%ul.wat-cf
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => t('.title')
|
||||||
/ #myTable
|
/ #myTable
|
||||||
%table.tablesorter{:cellpadding => "0", :cellspacing => "0"}
|
%table.tablesorter{:cellpadding => "0", :cellspacing => "0"}
|
||||||
%thead
|
%thead
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@product), t('title_editing')]
|
||||||
= render :partial => 'platforms/submenu'
|
= render :partial => 'platforms/submenu'
|
||||||
= render :partial => 'platforms/sidebar'
|
= render :partial => 'platforms/sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@platform), t('layout.products.list_header')]
|
||||||
= render :partial => 'platforms/submenu' if params[:platform_id]
|
= render :partial => 'platforms/submenu' if params[:platform_id]
|
||||||
= render :partial => 'platforms/sidebar' if params[:platform_id]
|
= render :partial => 'platforms/sidebar' if params[:platform_id]
|
||||||
= link_to t("layout.products.new"), new_platform_product_path(@platform), :class => 'button' if can? :create, @platform.products.build
|
= link_to t("layout.products.new"), new_platform_product_path(@platform), :class => 'button' if can? :create, @platform.products.build
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@platform), t('layout.products.new')]
|
||||||
= render :partial => 'platforms/submenu'
|
= render :partial => 'platforms/submenu'
|
||||||
= render :partial => 'platforms/sidebar'
|
= render :partial => 'platforms/sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => title_object(@product)
|
||||||
= render :partial => 'platforms/submenu'
|
= render :partial => 'platforms/submenu'
|
||||||
= render :partial => 'platforms/sidebar'
|
= render :partial => 'platforms/sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('layout.projects.edit')]
|
||||||
= render :partial => 'projects/submenu'
|
= render :partial => 'projects/submenu'
|
||||||
= render :partial => 'projects/sidebar'
|
= render :partial => 'projects/sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => t('layout.projects.list_header')
|
||||||
.toolbar
|
.toolbar
|
||||||
= link_to t('layout.projects.new'), new_project_path, :class => 'button' if can?(:create, Project)
|
= link_to t('layout.projects.new'), new_project_path, :class => 'button' if can?(:create, Project)
|
||||||
|
|
||||||
|
@ -7,7 +8,6 @@
|
||||||
%span.user= t("layout.relations.user")
|
%span.user= t("layout.relations.user")
|
||||||
%span.group= t("layout.relations.group")
|
%span.group= t("layout.relations.group")
|
||||||
.both
|
.both
|
||||||
|
|
||||||
- columns = [{:type => 'html'},
|
- columns = [{:type => 'html'},
|
||||||
{:type => 'html', :sortable => false, :searchable => false},
|
{:type => 'html', :sortable => false, :searchable => false},
|
||||||
{:type => nil, :sortable => false, :searchable => false, :class => 'rights'},
|
{:type => nil, :sortable => false, :searchable => false, :class => 'rights'},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%h3.bpadding10= t("layout.projects.new")
|
%h3.bpadding10= title t("layout.projects.new")
|
||||||
|
|
||||||
= form_for @project, :html => { :class => :form, :multipart => true } do |f|
|
= form_for @project, :html => { :class => :form, :multipart => true } do |f|
|
||||||
= render :partial => "form", :locals => {:f => f}
|
= render :partial => "form", :locals => {:f => f}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('layout.projects.sections')]
|
||||||
= render :partial => 'projects/submenu'
|
= render :partial => 'projects/submenu'
|
||||||
= render :partial => 'projects/sidebar'
|
= render :partial => 'projects/sidebar'
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
\|
|
\|
|
||||||
= link_to t("layout.register_request.rejected"), register_requests_path(:scope => :rejected)
|
= link_to t("layout.register_request.rejected"), register_requests_path(:scope => :rejected)
|
||||||
%h2.title
|
%h2.title
|
||||||
= t("layout.register_request.list_header")
|
= title t("layout.register_request.list_header")
|
||||||
.inner
|
.inner
|
||||||
= form_tag register_requests_path, :method => :put, :class => 'update_form' do
|
= form_tag register_requests_path, :method => :put, :class => 'update_form' do
|
||||||
= hidden_field_tag 'update_type'
|
= hidden_field_tag 'update_type'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@platform), t('layout.repositories.list_header')]
|
||||||
= render :partial => 'platforms/submenu' if params[:platform_id]
|
= render :partial => 'platforms/submenu' if params[:platform_id]
|
||||||
= render :partial => 'platforms/sidebar' if params[:platform_id]
|
= render :partial => 'platforms/sidebar' if params[:platform_id]
|
||||||
= link_to t("layout.repositories.new"), new_platform_repository_path(@platform), :class => 'button' if can? :create, @platform.repositories.build
|
= link_to t("layout.repositories.new"), new_platform_repository_path(@platform), :class => 'button' if can? :create, @platform.repositories.build
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@platform), t('layout.repositories.new')]
|
||||||
= render :partial => 'platforms/submenu'
|
= render :partial => 'platforms/submenu'
|
||||||
= render :partial => 'platforms/sidebar'
|
= render :partial => 'platforms/sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => title_object(@repository)
|
||||||
= render :partial => 'platforms/submenu'
|
= render :partial => 'platforms/submenu'
|
||||||
= render :partial => 'platforms/sidebar'
|
= render :partial => 'platforms/sidebar'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%h3= t 'layout.search.advanced'
|
%h3= title t('layout.search.advanced')
|
||||||
= render 'form_advanced'
|
= render 'form_advanced'
|
||||||
- if params[:type] == 'all'
|
- if params[:type] == 'all'
|
||||||
#all
|
#all
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => t('layout.users.settings_notifier')
|
||||||
%p
|
%p
|
||||||
= t("layout.settings.notifiers.notice_header", :email => @user.email)
|
= t("layout.settings.notifiers.notice_header", :email => @user.email)
|
||||||
%br
|
%br
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => t('layout.users.settings')
|
||||||
%h3.fix.bpadding10= t('layout.users.private_settings_header')
|
%h3.fix.bpadding10= t('layout.users.private_settings_header')
|
||||||
|
|
||||||
= form_for(@user, :url => user_private_settings_path(@user), :html => { :method => :put, :class => "form" }) do |f|
|
= form_for(@user, :url => user_private_settings_path(@user), :html => { :method => :put, :class => "form" }) do |f|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => t('.title')
|
||||||
%h3.fix.bpadding10= @user.uname
|
%h3.fix.bpadding10= @user.uname
|
||||||
|
|
||||||
= form_for @user, :url => user_path(@user), :html => { :class => :form } do |f|
|
= form_for @user, :url => user_path(@user), :html => { :class => :form } do |f|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
%br
|
%br
|
||||||
= link_to t("layout.users.settings"), current_user == @user ? edit_profile_path : edit_user_path(@user), :class => 'button width81' if can? :edit, @user
|
= link_to t("layout.users.settings"), current_user == @user ? edit_profile_path : edit_user_path(@user), :class => 'button width81' if can? :edit, @user
|
||||||
.left
|
.left
|
||||||
%h3= @user.uname
|
%h3= title @user.uname
|
||||||
= @user.name
|
= @user.name
|
||||||
%br
|
%br
|
||||||
= link_to @user.email, "mailto:#{ @user.email }"
|
= link_to @user.email, "mailto:#{ @user.email }"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('.title')]
|
||||||
= render 'gollum_includes'
|
= render 'gollum_includes'
|
||||||
/ = render 'project_short'
|
/ = render 'project_short'
|
||||||
= render 'projects/submenu'
|
= render 'projects/submenu'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), "#{t('wiki.editing_page')} #{@page.name}"]
|
||||||
= render 'gollum_includes'
|
= render 'gollum_includes'
|
||||||
/ = render 'project_short'
|
/ = render 'project_short'
|
||||||
= render 'projects/submenu'
|
= render 'projects/submenu'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('wiki.git_access')]
|
||||||
/ = render 'gollum_includes'
|
/ = render 'gollum_includes'
|
||||||
/ = render 'project_short'
|
/ = render 'project_short'
|
||||||
= render 'projects/submenu'
|
= render 'projects/submenu'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('wiki.wiki_history')]
|
||||||
/ = render 'gollum_includes'
|
/ = render 'gollum_includes'
|
||||||
/ = render 'project_short'
|
/ = render 'project_short'
|
||||||
= render 'projects/submenu'
|
= render 'projects/submenu'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), t('wiki.pages')]
|
||||||
/ = render 'gollum_includes'
|
/ = render 'gollum_includes'
|
||||||
/ = render 'project_short'
|
/ = render 'project_short'
|
||||||
= render 'projects/submenu'
|
= render 'projects/submenu'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), @query, t('wiki.searching.title')]
|
||||||
/ = render 'gollum_includes'
|
/ = render 'gollum_includes'
|
||||||
/ = render 'project_short'
|
/ = render 'project_short'
|
||||||
= render 'projects/submenu'
|
= render 'projects/submenu'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-set_meta_tags :title => [title_object(@project), @page.name]
|
||||||
/ = render 'gollum_includes'
|
/ = render 'gollum_includes'
|
||||||
/ = render 'project_short'
|
/ = render 'project_short'
|
||||||
= render 'projects/submenu'
|
= render 'projects/submenu'
|
||||||
|
|
|
@ -33,7 +33,7 @@ Rosa::Application.configure do
|
||||||
config.assets.compress = false
|
config.assets.compress = false
|
||||||
|
|
||||||
# Expands the lines which load the assets
|
# Expands the lines which load the assets
|
||||||
config.assets.debug = true
|
config.assets.debug = false
|
||||||
|
|
||||||
# Raise exception on mass assignment protection for Active Record models
|
# Raise exception on mass assignment protection for Active Record models
|
||||||
config.active_record.mass_assignment_sanitizer = :strict
|
config.active_record.mass_assignment_sanitizer = :strict
|
||||||
|
|
|
@ -5,10 +5,10 @@ en:
|
||||||
build_all: Build all
|
build_all: Build all
|
||||||
list: List
|
list: List
|
||||||
new: Create
|
new: Create
|
||||||
edit: Edit
|
edit: Settings
|
||||||
about: About platform
|
about: About platform
|
||||||
new_header: New platform
|
new_header: New platform
|
||||||
edit_header: Edit
|
edit_header: Settings
|
||||||
list_header: Platforms
|
list_header: Platforms
|
||||||
list_header_main: General
|
list_header_main: General
|
||||||
list_header_personal: Personal
|
list_header_personal: Personal
|
||||||
|
|
|
@ -5,10 +5,10 @@ ru:
|
||||||
build_all: Собрать все
|
build_all: Собрать все
|
||||||
list: Список
|
list: Список
|
||||||
new: Создать
|
new: Создать
|
||||||
edit: Редактировать
|
edit: Настройки
|
||||||
about: О платформе
|
about: О платформе
|
||||||
new_header: Новая платформа
|
new_header: Новая платформа
|
||||||
edit_header: Редактировать
|
edit_header: Настройки
|
||||||
list_header: Платформы
|
list_header: Платформы
|
||||||
list_header_main: Основные
|
list_header_main: Основные
|
||||||
list_header_personal: Персональные
|
list_header_personal: Персональные
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
en:
|
||||||
|
title_editing:
|
||||||
|
'Editing'
|
||||||
|
at: at
|
||||||
|
users:
|
||||||
|
profile:
|
||||||
|
title: 'Your Profile'
|
||||||
|
build_lists:
|
||||||
|
index:
|
||||||
|
title: 'Projects Monitoring'
|
||||||
|
product_build_lists:
|
||||||
|
index:
|
||||||
|
title: 'Products Monitoring'
|
||||||
|
git:
|
||||||
|
commits:
|
||||||
|
index:
|
||||||
|
title: 'Commit History'
|
||||||
|
issues:
|
||||||
|
index:
|
||||||
|
title: 'Tracker'
|
||||||
|
wiki:
|
||||||
|
compare:
|
||||||
|
title: 'Compare Revisions'
|
||||||
|
searching:
|
||||||
|
title: 'Search in Wiki'
|
|
@ -0,0 +1,25 @@
|
||||||
|
ru:
|
||||||
|
title_editing:
|
||||||
|
'Редактирование'
|
||||||
|
at: at
|
||||||
|
users:
|
||||||
|
profile:
|
||||||
|
title: 'Ваш профиль'
|
||||||
|
build_lists:
|
||||||
|
index:
|
||||||
|
title: 'Мониторинг проектов'
|
||||||
|
product_build_lists:
|
||||||
|
index:
|
||||||
|
title: 'Мониторинг продуктов'
|
||||||
|
git:
|
||||||
|
commits:
|
||||||
|
index:
|
||||||
|
title: 'История коммитов'
|
||||||
|
issues:
|
||||||
|
index:
|
||||||
|
title: 'Трекер'
|
||||||
|
wiki:
|
||||||
|
compare:
|
||||||
|
title: 'Сравнение версий'
|
||||||
|
searching:
|
||||||
|
title: 'Поиск в вики'
|
|
@ -30,6 +30,8 @@ en:
|
||||||
admin: Admins
|
admin: Admins
|
||||||
real: Real
|
real: Real
|
||||||
banned: Banned
|
banned: Banned
|
||||||
|
register_request:
|
||||||
|
list_header: Register requests
|
||||||
|
|
||||||
activerecord:
|
activerecord:
|
||||||
attributes:
|
attributes:
|
||||||
|
|
|
@ -30,6 +30,8 @@ ru:
|
||||||
admin: Админы
|
admin: Админы
|
||||||
real: Обычные
|
real: Обычные
|
||||||
banned: Забаненные
|
banned: Забаненные
|
||||||
|
register_request:
|
||||||
|
list_header: Заявки на регистрацию
|
||||||
|
|
||||||
activerecord:
|
activerecord:
|
||||||
attributes:
|
attributes:
|
||||||
|
|
Loading…
Reference in New Issue