From cb4869fd20efda4ada60d33f0e91f6bd7ba0b789 Mon Sep 17 00:00:00 2001 From: linhk <304431313@.com> Date: Thu, 7 Aug 2014 17:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B0=E5=BB=BA=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=BA=93=E5=90=8D=E9=95=BF255=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E6=97=B6=E5=BC=82=E5=B8=B8=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93=E5=90=8D=E9=95=BF=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/repository.rb | 4 ++-- app/views/projects/settings/_repositories.html.erb | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/models/repository.rb b/app/models/repository.rb index c2736dd30..260069f94 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -21,8 +21,8 @@ class Repository < ActiveRecord::Base include Redmine::Ciphering include Redmine::SafeAttributes - # Maximum length for repository identifiers - IDENTIFIER_MAX_LENGTH = 255 + # Maximum length for repository ideflashntifiers + IDENTIFIER_MAX_LENGTH = 254 belongs_to :project has_many :changesets, :order => "#{Changeset.table_name}.committed_on DESC, #{Changeset.table_name}.id DESC" diff --git a/app/views/projects/settings/_repositories.html.erb b/app/views/projects/settings/_repositories.html.erb index 4ad14bf84..f4b505065 100644 --- a/app/views/projects/settings/_repositories.html.erb +++ b/app/views/projects/settings/_repositories.html.erb @@ -1,7 +1,7 @@ <% project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT %> <% ip = RepositoriesHelper::REPO_IP_ADDRESS %> <% if @project.repositories.any? %> -
<%= l(:field_identifier) %> | @@ -14,16 +14,16 @@||||||
---|---|---|---|---|---|---|
+ | <%= checked_image repository.is_default? %> | -<%=h repository.scm_name %> | +<%=h repository.scm_name %> | <%if repository.scm_name=="Git"%> -http://<%= repository.login.to_s %>_<%= repository.identifier.to_s%>@<%= ip %><%=h repository.url.slice(project_path_cut, repository.url.length) %> | + <%else %> -<%=h repository.url %> | + <% end %>