From 0720d3988f3e088e527dd857756d6598694494a7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 12 Mar 2015 16:01:23 -0400 Subject: [PATCH] #988: GetRepoLink already contains AppSubUrl --- conf/locale/locale_de-DE.ini | 21 ++++++++++++--------- conf/locale/locale_en-US.ini | 12 ++++++------ conf/locale/locale_es-ES.ini | 21 ++++++++++++--------- conf/locale/locale_fr-CA.ini | 21 ++++++++++++--------- conf/locale/locale_ja-JP.ini | 21 ++++++++++++--------- conf/locale/locale_lv-LV.ini | 21 ++++++++++++--------- conf/locale/locale_nl-NL.ini | 21 ++++++++++++--------- conf/locale/locale_ru-RU.ini | 21 ++++++++++++--------- conf/locale/locale_zh-CN.ini | 21 ++++++++++++--------- conf/locale/locale_zh-HK.ini | 21 ++++++++++++--------- models/action.go | 9 ++++++++- templates/user/dashboard/feeds.tmpl | 12 ++++++------ 12 files changed, 128 insertions(+), 94 deletions(-) diff --git a/conf/locale/locale_de-DE.ini b/conf/locale/locale_de-DE.ini index 0254207fc..8d1b2de1b 100755 --- a/conf/locale/locale_de-DE.ini +++ b/conf/locale/locale_de-DE.ini @@ -281,13 +281,13 @@ init_readme=Repository mit README.md initialisieren create_repo=Repository erstellen default_branch=Standard-Branch mirror_interval=Spiegel-Intervall (in Stunden) -goget_meta=Go-Get Meta -goget_meta_helper=Dieses Repository wird man mit go get klonen können. need_auth=Authorisierung benötigt migrate_type=Migrationstyp migrate_type_helper=Dieses Repository wird ein Spiegel migrate_repo=Repository migrieren +migrate.clone_address=Clone Address +migrate.invalid_local_path=Invalid local path, it does not exist or not a directory. copy_link=Kopieren click_to_copy=In Zwischenablage kopieren @@ -595,7 +595,10 @@ auths.domain=Domain auths.host=Host auths.port=Port auths.base_dn=Base DN -auths.attributes=Suchattribute +auths.attribute_username=Username attribute +auths.attribute_name=First name attribute +auths.attribute_surname=Surname attribute +auths.attribute_mail=E-mail attribute auths.filter=Suchfilter auths.ms_ad_sa=Ms Ad SA auths.smtp_auth=SMTP-Authentifizierungstyp @@ -693,12 +696,12 @@ notices.op=Op. notices.delete_success=System-Mitteilung erfolgreich gelöscht. [action] -create_repo=hat Repository %s erstellt -commit_repo=hat nach %s in %s gepusht -create_issue=`hat Issue %[1]s#%[2]s eröffnet` -comment_issue=`hat Issue %[1]s#%[2]s kommentiert` -transfer_repo=hat Repository %s transferiert an %s -push_tag=hat nach %s in %s gepusht +create_repo=hat Repository %s erstellt +commit_repo=hat nach %[2]s in %[3]s gepusht +create_issue=`hat Issue %s#%[2]s eröffnet` +comment_issue=`hat Issue %s#%[2]s kommentiert` +transfer_repo=hat Repository %s transferiert an %s +push_tag=hat nach %[2]s in %[3]s gepusht compare_2_commits=Zeige Vergleich dieser 2 Commits [tool] diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index 7e32a21ee..c2fec7d9e 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -696,12 +696,12 @@ notices.op = Op. notices.delete_success = System notice has been deleted successfully. [action] -create_repo = created repository %s -commit_repo = pushed to %s at %s -create_issue = `opened issue %[1]s#%[2]s` -comment_issue = `commented on issue %[1]s#%[2]s` -transfer_repo = transfered repository %s to %s -push_tag = pushed tag %s to %s +create_repo = created repository %s +commit_repo = pushed to %[2]s at %[3]s +create_issue = `opened issue %s#%[2]s` +comment_issue = `commented on issue %s#%[2]s` +transfer_repo = transfered repository %s to %s +push_tag = pushed tag %[2]s to %[3]s compare_2_commits = View comparison for these 2 commits [tool] diff --git a/conf/locale/locale_es-ES.ini b/conf/locale/locale_es-ES.ini index fc235f153..124548a30 100755 --- a/conf/locale/locale_es-ES.ini +++ b/conf/locale/locale_es-ES.ini @@ -281,13 +281,13 @@ init_readme=Crear este repositorio con un fichero README.md create_repo=Crear Repositorio default_branch=Rama por defecto mirror_interval=Intervalo de mirror(en horas) -goget_meta=Go-Get Meta -goget_meta_helper=Este repositorio será Go-Getable need_auth=Requiere Autorización migrate_type=Tipo de Migración migrate_type_helper=Este repositorio será un Mirror migrate_repo=Migrar Repositorio +migrate.clone_address=Clonar Dirección +migrate.invalid_local_path=Rutal local inválida, no existe o no es un directorio. copy_link=Copiar click_to_copy=Copiar al portapapeles @@ -595,7 +595,10 @@ auths.domain=Dominio auths.host=Host auths.port=Puerto auths.base_dn=Base DN -auths.attributes=Atributos de búsqueda +auths.attribute_username=Atributo username +auths.attribute_name=Atributo nombre +auths.attribute_surname=Atributo apellido +auths.attribute_mail=Atributo correo electrónico auths.filter=Filtro de Búsqueda auths.ms_ad_sa=Ms Ad SA auths.smtp_auth=Tipo de Autorización SMTP @@ -693,12 +696,12 @@ notices.op=Op. notices.delete_success=La notificación del sistema se ha eliminado correctamente. [action] -create_repo=Repositorio creado %s -commit_repo=hizo push a %s en %s -create_issue=`incidencia abierta %[1]s#%[2]s` -comment_issue=`comentó en la incidencia %[1]s#%[2]s` -transfer_repo=transfirió el repositorio %s a %s -push_tag=hizo push del tag %s a %s +create_repo=Repositorio creado %s +commit_repo=hizo push a %[2]s en %[3]s +create_issue=`incidencia abierta %s#%[2]s` +comment_issue=`comentó en la incidencia %s#%[2]s` +transfer_repo=transfirió el repositorio %s a %s +push_tag=hizo push del tag %[2]s a %[3]s compare_2_commits=Ver la comparación de estos 2 commits [tool] diff --git a/conf/locale/locale_fr-CA.ini b/conf/locale/locale_fr-CA.ini index e744b9d97..b388884d3 100755 --- a/conf/locale/locale_fr-CA.ini +++ b/conf/locale/locale_fr-CA.ini @@ -281,13 +281,13 @@ init_readme=Initialiser ce Référentiel avec un README.md create_repo=Créer un Référentiel default_branch=Branche par défaut mirror_interval=Intervalle du miroir (heure) -goget_meta=Méta Go-Get -goget_meta_helper=Ce Référentiel sera Go-Getable need_auth=Nécessite une Autorisation migrate_type=Type de Migration migrate_type_helper=Ce Référentiel sera un Miroir migrate_repo=Migrer le Référentiel +migrate.clone_address=Adresse du clone +migrate.invalid_local_path=Chemin local non valide, non existant ou n'étant pas un dossier. copy_link=Copier click_to_copy=Copier dans le presse-papier @@ -595,7 +595,10 @@ auths.domain=Domaine auths.host=Hôte auths.port=Port auths.base_dn=Base DN (Nom Distingué) -auths.attributes=Rechercher les Attributs +auths.attribute_username=Attribut du nom d'utilisateur +auths.attribute_name=Attribut du prénom +auths.attribute_surname=Attribut du nom de famille +auths.attribute_mail=Attribut de l'e-mail auths.filter=Filtre de recherche auths.ms_ad_sa=Ms Ad SA auths.smtp_auth=Type d'Autorisation SMTP @@ -693,12 +696,12 @@ notices.op=Auteur notices.delete_success=Note système supprimée avec succès. [action] -create_repo=a crée le Référentiel %s -commit_repo=a soumis à %s chez %s -create_issue=`a ouvert un problème %[1]s#%[2]s` -comment_issue=`a commenté le problème %[1]s#%[2]s` -transfer_repo=a transféré le Référentiel %s à %s -push_tag=a tagé %s à %s +create_repo=a crée le Référentiel %s +commit_repo=a soumis à %[2]s chez %[3]s +create_issue=`a ouvert un problème %s#%[2]s` +comment_issue=`a commenté le problème %s#%[2]s` +transfer_repo=a transféré le Référentiel %s à %s +push_tag=a tagé %[2]s à %[3]s compare_2_commits=Comparer ces 2 commissions [tool] diff --git a/conf/locale/locale_ja-JP.ini b/conf/locale/locale_ja-JP.ini index 441da8feb..ef4336214 100755 --- a/conf/locale/locale_ja-JP.ini +++ b/conf/locale/locale_ja-JP.ini @@ -281,13 +281,13 @@ init_readme=README.md 付きでリポジトリを初期化 create_repo=リポジトリを作成 default_branch=デフォルトのブランチ mirror_interval=ミラー 間隔(時) -goget_meta=Go-Get メタ -goget_meta_helper=このリポジトリは Go-Getable になります need_auth=認証が必要 migrate_type=マイグレーションの種類 migrate_type_helper=このリポジトリは ミラー になります migrate_repo=リポジトリを移行 +migrate.clone_address=Clone Address +migrate.invalid_local_path=Invalid local path, it does not exist or not a directory. copy_link=コピー click_to_copy=クリップボードにコピー @@ -595,7 +595,10 @@ auths.domain=ドメイン auths.host=ホスト auths.port=ポート auths.base_dn=ベースのドメイン名 -auths.attributes=属性検索 +auths.attribute_username=Username attribute +auths.attribute_name=First name attribute +auths.attribute_surname=Surname attribute +auths.attribute_mail=E-mail attribute auths.filter=検索フィルター auths.ms_ad_sa=Ms Ad SA auths.smtp_auth=SMTP 認証の種類 @@ -693,12 +696,12 @@ notices.op=Op。 notices.delete_success=システム通知が正常に削除されました。 [action] -create_repo=リポジトリ %sを作成しました -commit_repo=%s%sにプッシュしました -create_issue=`問題 %[1]s#%[2]s を開きました` -comment_issue=`問題 %[1]s#%[2]s のコメント` -transfer_repo=リポジトリ %s%s へ転送しました -push_tag=%s に タグ %s をプッシュしました +create_repo=リポジトリ %sを作成しました +commit_repo=%[3]s%[2]sにプッシュしました +create_issue=`問題 %s#%[2]s を開きました` +comment_issue=`問題 %s#%[2]s のコメント` +transfer_repo=リポジトリ %s%s へ転送しました +push_tag=%[3]s に タグ %[2]s をプッシュしました compare_2_commits=これら 2 のコミットの比較を閲覧する [tool] diff --git a/conf/locale/locale_lv-LV.ini b/conf/locale/locale_lv-LV.ini index 23276b465..35cdd3a83 100755 --- a/conf/locale/locale_lv-LV.ini +++ b/conf/locale/locale_lv-LV.ini @@ -281,13 +281,13 @@ init_readme=Inicializēt šo repozitoriju ar README.md failu create_repo=Izveidot repozitoriju default_branch=Noklusējuma atzars mirror_interval=Spoguļošanas intervāls (stundās) -goget_meta=Go-Get metadati -goget_meta_helper=Šis repozitorijs saturēs Go-Get metadatus need_auth=Nepieciešama autorizācija migrate_type=Migrācijas veids migrate_type_helper=Šis repozitorijs būs Spoguļots migrate_repo=Migrēt repozitoriju +migrate.clone_address=Clone Address +migrate.invalid_local_path=Invalid local path, it does not exist or not a directory. copy_link=Kopēt click_to_copy=Kopēt uz starpliktuvi @@ -595,7 +595,10 @@ auths.domain=Domēns auths.host=Resursdators auths.port=Ports auths.base_dn=Pamata DN -auths.attributes=Meklēšanas atribūti +auths.attribute_username=Username attribute +auths.attribute_name=First name attribute +auths.attribute_surname=Surname attribute +auths.attribute_mail=E-mail attribute auths.filter=Meklēšanas filtrs auths.ms_ad_sa=MS Ad SA auths.smtp_auth=SMTP autorizācijas veids @@ -693,12 +696,12 @@ notices.op=Op. notices.delete_success=Sistēmas paziņojums tika veiksmīgi izdzēsts. [action] -create_repo=izveidoja repozitoriju %s -commit_repo=veica izmaiņu nosūtīšanu atzaram %s repozitorijā %s -create_issue=`reģistrēja problēmu %[1]s#%[2]s` -comment_issue=`pievienoja komentāru problēmai %[1]s#%[2]s` -transfer_repo=mainīja repozitorija %s īpašnieku uz %s -push_tag=pievienoja tagu %s repozitorijam %s +create_repo=izveidoja repozitoriju %s +commit_repo=veica izmaiņu nosūtīšanu atzaram %[2]s repozitorijā %[3]s +create_issue=`reģistrēja problēmu %s#%[2]s` +comment_issue=`pievienoja komentāru problēmai %s#%[2]s` +transfer_repo=mainīja repozitorija %s īpašnieku uz %s +push_tag=pievienoja tagu %[2]s repozitorijam %[3]s compare_2_commits=Veikt salīdzināšanu starp šīm 2 revīzijām [tool] diff --git a/conf/locale/locale_nl-NL.ini b/conf/locale/locale_nl-NL.ini index 0a4ecb43a..c1bc6c343 100755 --- a/conf/locale/locale_nl-NL.ini +++ b/conf/locale/locale_nl-NL.ini @@ -281,13 +281,13 @@ init_readme=Initialiseer deze repositorie met een README.md create_repo=Nieuwe Repositorie default_branch=Standaard branch mirror_interval=Mirror interval(uur) -goget_meta=Go-Get Meta -goget_meta_helper=Deze repositorie is nu beschikbaar voor Go-Get need_auth=Autorisatie vereist migrate_type=Migratie type migrate_type_helper=Deze repositorie zal een mirror worden migrate_repo=Migreer repositorie +migrate.clone_address=Clone Address +migrate.invalid_local_path=Invalid local path, it does not exist or not a directory. copy_link=Kopieer click_to_copy=Kopieer link naar plakbord @@ -595,7 +595,10 @@ auths.domain=Domein auths.host=Host auths.port=Poort auths.base_dn=Base DN -auths.attributes=Zoek attributen +auths.attribute_username=Username attribute +auths.attribute_name=First name attribute +auths.attribute_surname=Surname attribute +auths.attribute_mail=E-mail attribute auths.filter=Zoek filter auths.ms_ad_sa=MS Ad SA auths.smtp_auth=SMTP authenticatietype @@ -693,12 +696,12 @@ notices.op=Op. notices.delete_success=Systeem bericht is met succes verwijderd. [action] -create_repo=repositorie aangemaakt in %s -commit_repo=push update naar %s in %s%[1]s#%[2]s` -comment_issue=`reactie op issue %[1]s#%[2]s` -transfer_repo=repositorie verplaatst naar %s naar %s -push_tag=geduwd label %s naar %s +create_repo=repositorie aangemaakt in %s +commit_repo=push update naar %[2]s in %[3]s +create_issue=`opende issue in %s#%[2]s` +comment_issue=`reactie op issue %s#%[2]s` +transfer_repo=repositorie verplaatst naar %s naar %s +push_tag=geduwd label %[2]s naar %[3]s compare_2_commits=Weergave vergelijking voor deze 2 commits [tool] diff --git a/conf/locale/locale_ru-RU.ini b/conf/locale/locale_ru-RU.ini index 731ba469c..c2a50b9da 100755 --- a/conf/locale/locale_ru-RU.ini +++ b/conf/locale/locale_ru-RU.ini @@ -281,13 +281,13 @@ init_readme=Создать репозиторий с файлом README.md create_repo=Создание репозитория default_branch=Ветка по умолчанию mirror_interval=Интервал зеркалирования (час) -goget_meta=Meta-тег для go get -goget_meta_helper=Репозиторий будет доступен для go get need_auth=Требуется авторизация migrate_type=Тип миграции migrate_type_helper=Этот репозиторий будет зеркалом migrate_repo=Перенос репозитория +migrate.clone_address=Clone Address +migrate.invalid_local_path=Invalid local path, it does not exist or not a directory. copy_link=Копировать click_to_copy=Скопировать в буфер обмена @@ -595,7 +595,10 @@ auths.domain=Домен auths.host=Хост auths.port=Порт auths.base_dn=Base DN -auths.attributes=Search Attributes +auths.attribute_username=Username attribute +auths.attribute_name=First name attribute +auths.attribute_surname=Surname attribute +auths.attribute_mail=E-mail attribute auths.filter=Фильтр поиска auths.ms_ad_sa=Ms Ad SA auths.smtp_auth=Тип авторизации SMTP @@ -693,12 +696,12 @@ notices.op=Op. notices.delete_success=Системное уведомление успешно удалено. [action] -create_repo=создан репозиторий %s -commit_repo=pushed to %s at %s -create_issue=`opened issue %[1]s#%[2]s` -comment_issue=`commented on issue %[1]s#%[2]s` -transfer_repo=transfered repository %s to %s -push_tag=pushed tag %s to %s +create_repo=создан репозиторий %s +commit_repo=pushed to %[2]s at %[3]s +create_issue=`opened issue %s#%[2]s` +comment_issue=`commented on issue %s#%[2]s` +transfer_repo=transfered repository %s to %s +push_tag=pushed tag %[2]s to %[3]s compare_2_commits=Просмотреть сравнение двух коммитов [tool] diff --git a/conf/locale/locale_zh-CN.ini b/conf/locale/locale_zh-CN.ini index 353706822..0e418e254 100755 --- a/conf/locale/locale_zh-CN.ini +++ b/conf/locale/locale_zh-CN.ini @@ -281,13 +281,13 @@ init_readme=使用 README.md 文件初始化仓库 create_repo=创建仓库 default_branch=默认分支 mirror_interval=镜像同步周期(小时) -goget_meta=Go-Get 支持 -goget_meta_helper=本仓库将可以通过 Go Get 获取 need_auth=需要授权验证 migrate_type=迁移类型 migrate_type_helper=本仓库将是 镜像 migrate_repo=迁移仓库 +migrate.clone_address=克隆地址 +migrate.invalid_local_path=无效的本地路径,不存在或不是一个目录! copy_link=复制链接 click_to_copy=复制到剪切板 @@ -595,7 +595,10 @@ auths.domain=域名 auths.host=主机地址 auths.port=主机端口 auths.base_dn=Base DN -auths.attributes=Search Attributes +auths.attribute_username=用户名属性 +auths.attribute_name=名字属性 +auths.attribute_surname=姓氏属性 +auths.attribute_mail=邮箱属性 auths.filter=Search Filter auths.ms_ad_sa=Ms Ad SA auths.smtp_auth=SMTP 授权类型 @@ -693,12 +696,12 @@ notices.op=操作 notices.delete_success=系统提示删除成功! [action] -create_repo=创建了仓库 %s -commit_repo=推送了 %s 分支的代码到 %s -create_issue=`创建了工单 %[1]s#%[2]s` -comment_issue=`评论了工单 %[1]s#%[2]s` -transfer_repo=将仓库 %s 转移至 %s -push_tag=推送了标签 %s%s +create_repo=创建了仓库 %s +commit_repo=推送了 %[2]s 分支的代码到 %[3]s +create_issue=`创建了工单 %s#%[2]s` +comment_issue=`评论了工单 %s#%[2]s` +transfer_repo=将仓库 %s 转移至 %s +push_tag=推送了标签 %[2]s%[3]s compare_2_commits=查看 2 次提交的内容对比 [tool] diff --git a/conf/locale/locale_zh-HK.ini b/conf/locale/locale_zh-HK.ini index a9b51a5b0..8447e6091 100755 --- a/conf/locale/locale_zh-HK.ini +++ b/conf/locale/locale_zh-HK.ini @@ -281,13 +281,13 @@ init_readme=使用 README.md 文件初始化倉庫 create_repo=創建倉庫 default_branch=默認分支 mirror_interval=鏡像同步周期(小時) -goget_meta=Go-Get 支持 -goget_meta_helper=本倉庫將可以通過 Go Get 獲取 need_auth=需要授權驗證 migrate_type=遷移類型 migrate_type_helper=本倉庫將是 鏡像 migrate_repo=遷移倉庫 +migrate.clone_address=Clone Address +migrate.invalid_local_path=Invalid local path, it does not exist or not a directory. copy_link=複製連結 click_to_copy=複製到剪切簿 @@ -595,7 +595,10 @@ auths.domain=域名 auths.host=主機地址 auths.port=主機端口 auths.base_dn=Base DN -auths.attributes=搜尋屬性 +auths.attribute_username=Username attribute +auths.attribute_name=First name attribute +auths.attribute_surname=Surname attribute +auths.attribute_mail=E-mail attribute auths.filter=搜尋過濾 auths.ms_ad_sa=Ms Ad SA auths.smtp_auth=SMTP 授權類型 @@ -693,12 +696,12 @@ notices.op=操作 notices.delete_success=系統提示刪除成功! [action] -create_repo=創建了倉庫 %s -commit_repo=推送了 %s 分支的代碼到 %s -create_issue=`創建了問題 %[1]s#%[2]s` -comment_issue=`評論了問題 %[1]s#%[2]s` -transfer_repo=將倉庫 %s 轉移至 %s -push_tag=推送了標籤 %s%s +create_repo=創建了倉庫 %s +commit_repo=推送了 %[2]s 分支的代碼到 %[3]s +create_issue=`創建了問題 %s#%[2]s` +comment_issue=`評論了問題 %s#%[2]s` +transfer_repo=將倉庫 %s 轉移至 %s +push_tag=推送了標籤 %[2]s%[3]s compare_2_commits=查看 2 次提交的內容對比 [tool] diff --git a/models/action.go b/models/action.go index f872104eb..f97ecfcde 100644 --- a/models/action.go +++ b/models/action.go @@ -97,8 +97,15 @@ func (a Action) GetRepoName() string { return a.RepoName } +func (a Action) GetRepoPath() string { + return path.Join(a.RepoUserName, a.RepoName) +} + func (a Action) GetRepoLink() string { - return path.Join(setting.AppSubUrl, a.RepoUserName, a.RepoName) + if len(setting.AppSubUrl) > 0 { + return path.Join(setting.AppSubUrl, a.GetRepoPath()) + } + return "/" + a.GetRepoPath() } func (a Action) GetBranch() string { diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 8acf22896..88fb40753 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -7,19 +7,19 @@

{{.GetActUserName}} {{if eq .GetOpType 1}} - {{$.i18n.Tr "action.create_repo" AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} + {{$.i18n.Tr "action.create_repo" .GetRepoLink .GetRepoPath | Str2html}} {{else if eq .GetOpType 5}} - {{$.i18n.Tr "action.commit_repo" AppSubUrl .GetRepoLink .GetBranch .GetBranch AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} + {{$.i18n.Tr "action.commit_repo" .GetRepoLink .GetBranch .GetRepoPath | Str2html}} {{else if eq .GetOpType 6}} {{ $index := index .GetIssueInfos 0}} - {{$.i18n.Tr "action.create_issue" .GetRepoLink $index | Str2html}} + {{$.i18n.Tr "action.create_issue" .GetRepoLink $index .GetRepoPath | Str2html}} {{else if eq .GetOpType 8}} - {{$.i18n.Tr "action.transfer_repo" .GetContent AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} + {{$.i18n.Tr "action.transfer_repo" .GetContent .GetRepoLink .GetRepoPath | Str2html}} {{else if eq .GetOpType 9}} - {{$.i18n.Tr "action.push_tag" AppSubUrl .GetRepoLink .GetBranch .GetBranch AppSubUrl .GetRepoLink .GetRepoLink | Str2html}} + {{$.i18n.Tr "action.push_tag" .GetRepoLink .GetBranch .GetRepoPath | Str2html}} {{else if eq .GetOpType 10}} {{ $index := index .GetIssueInfos 0}} - {{$.i18n.Tr "action.comment_issue" .GetRepoLink $index | Str2html}} + {{$.i18n.Tr "action.comment_issue" .GetRepoLink $index .GetRepoPath | Str2html}} {{end}}

{{if eq .GetOpType 5}}