[refs #2161] Change private users and personal repos menus
This commit is contained in:
parent
18de67ba7d
commit
4341155771
|
@ -5,7 +5,7 @@ class PrivatesController < ApplicationController
|
|||
before_filter :authenticate
|
||||
|
||||
def show
|
||||
file_name = "#{APP_CONFIG['root_path']}/platforms/#{params[:platform_name]}/repository/#{params[:file_path]}"
|
||||
file_name = "#{APP_CONFIG['root_path']}/platforms/#{params[:platform_name]}/#{params[:file_path]}"
|
||||
|
||||
if File.directory?(file_name) || !File.exists?(file_name)
|
||||
render :file => "#{Rails.root}/public/404.html", :layout => false, :status => 404
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
.block
|
||||
.secondary-navigation
|
||||
%ul.wat-cf
|
||||
%li.first=# link_to t("layout.repositories.list"), platform_path(@platform) + "#repositories"
|
||||
%li=# link_to t("layout.repositories.new"), new_platform_repository_path(@platform)
|
||||
%li.active=# link_to t("layout.repositories.show"), platform_repository_path(@platform, @repository)
|
||||
%li.first= link_to t("layout.personal_repositories.show"), personal_repository_path(current_user.personal_repository)
|
||||
%li= link_to t("layout.personal_repositories.settings"), settings_personal_repository_path(current_user.personal_repository)
|
||||
%li.active= link_to t("layout.personal_repositories.private_users"), platform_private_users_path(current_user.personal_platform) if current_user.personal_platform.hidden?
|
||||
.content
|
||||
.inner
|
||||
%p
|
||||
|
|
|
@ -119,7 +119,7 @@ ru:
|
|||
visibility: Видимость
|
||||
platform_type: Тип платформы
|
||||
distrib_type: Тип дистрибутива
|
||||
private_users: Пользователи приватного репозитория
|
||||
private_users: Данные для доступа
|
||||
confirm_clone: Клонировать?
|
||||
clone: Клонировать
|
||||
|
||||
|
|
Loading…
Reference in New Issue