This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Merge pull request
#1275
from jstasiak/develop
Add file permalink button
master
无闻
10 years ago
parent
6272986192
562ad02a6d
commit
e69f09f50e
13 changed files
with
17 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
conf/locale/locale_de-DE.ini
+1
-0
conf/locale/locale_en-US.ini
+1
-0
conf/locale/locale_es-ES.ini
+1
-0
conf/locale/locale_fr-FR.ini
+1
-0
conf/locale/locale_ja-JP.ini
+1
-0
conf/locale/locale_lv-LV.ini
+1
-0
conf/locale/locale_nl-NL.ini
+1
-0
conf/locale/locale_pl-PL.ini
+1
-0
conf/locale/locale_pt-BR.ini
+1
-0
conf/locale/locale_ru-RU.ini
+1
-0
conf/locale/locale_zh-CN.ini
+1
-0
conf/locale/locale_zh-HK.ini
+5
-0
templates/repo/view_file.tmpl
+ 1
- 0
conf/locale/locale_de-DE.ini
View File
@@ -343,6 +343,7 @@ releases=Veröffentlichungen
file_raw=Roh
file_history=Verlauf
file_view_raw=Ansicht Roh
file_permalink=Permalink
commits.commits=Commits
commits.search=Durchsuche Commits
+ 1
- 0
conf/locale/locale_en-US.ini
View File
@@ -343,6 +343,7 @@ releases = Releases
file_raw = Raw
file_history = History
file_view_raw = View Raw
file_permalink = Permalink
commits.commits = Commits
commits.search = Search commits
+ 1
- 0
conf/locale/locale_es-ES.ini
View File
@@ -343,6 +343,7 @@ releases=Releases
file_raw=Raw
file_history=Histórico
file_view_raw=Ver Raw
file_permalink=Permalink
commits.commits=Commits
commits.search=Buscar Commits
+ 1
- 0
conf/locale/locale_fr-FR.ini
View File
@@ -343,6 +343,7 @@ releases=Publications
file_raw=Raw
file_history=Historique
file_view_raw=Voir le Raw
file_permalink=Permalink
commits.commits=Commissions
commits.search=Rechercher des commissions
+ 1
- 0
conf/locale/locale_ja-JP.ini
View File
@@ -343,6 +343,7 @@ releases=リリース
file_raw=生データ
file_history=履歴
file_view_raw=生データを見る
file_permalink=Permalink
commits.commits=コミット
commits.search=コミットの検索
+ 1
- 0
conf/locale/locale_lv-LV.ini
View File
@@ -341,6 +341,7 @@ releases=Laidieni
file_raw=Neapstrādāts
file_history=Vēsture
file_view_raw=Rādīt neapstrādātu
file_permalink=Permalink
commits.commits=Revīzijas
commits.search=Meklēt revīzijas
+ 1
- 0
conf/locale/locale_nl-NL.ini
View File
@@ -343,6 +343,7 @@ releases=Publicaties
file_raw=Ruwe
file_history=Geschiedenis
file_view_raw=Weergave ruwe
file_permalink=Permalink
commits.commits=Commits
commits.search=Zoeken
+ 1
- 0
conf/locale/locale_pl-PL.ini
View File
@@ -343,6 +343,7 @@ releases=Wydania
file_raw=Czysty
file_history=Historia
file_view_raw=Zobacz czysty
file_permalink=Permalink
commits.commits=Commity
commits.search=Przeszukaj commity
+ 1
- 0
conf/locale/locale_pt-BR.ini
View File
@@ -343,6 +343,7 @@ releases=Lançamentos
file_raw=Cru
file_history=Histórico
file_view_raw=Ver cru
file_permalink=Permalink
commits.commits=Commits
commits.search=Pesquisar commits
+ 1
- 0
conf/locale/locale_ru-RU.ini
View File
@@ -343,6 +343,7 @@ releases=Релизы
file_raw=Исходник
file_history=История
file_view_raw=Посмотреть исходник
file_permalink=Permalink
commits.commits=Коммиты
commits.search=Поиск коммитов
+ 1
- 0
conf/locale/locale_zh-CN.ini
View File
@@ -343,6 +343,7 @@ releases=版本发布
file_raw=原始文件
file_history=文件历史
file_view_raw=查看原始文件
file_permalink=Permalink
commits.commits=次代码提交
commits.search=搜索提交历史
+ 1
- 0
conf/locale/locale_zh-HK.ini
View File
@@ -341,6 +341,7 @@ releases=版本發佈
file_raw=原始文件
file_history=文件歷史
file_view_raw=查看原始文件
file_permalink=Permalink
commits.commits=次代碼提交
commits.search=搜索提交歷史
+ 5
- 0
templates/repo/view_file.tmpl
View File
@@ -12,6 +12,11 @@
<strong class="file-name">{{.FileName}}</strong><span class="file-size">{{FileSize .FileSize}}</span>
{{end}}
{{if not .ReadmeInList}}
{{if not .IsCommit}}
<a class="right" href="{{.RepoLink}}/src/{{.CommitId}}/{{.TreeName}}">
<button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_permalink"}}</button>
</a>
{{end}}
<a class="right" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}/{{.TreeName}}">
<button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_history"}}</button>
</a>
Write
Preview
Loading…
Cancel
Save