Browse Source

improved ui

tags/vopendata0.1.2
palytoxin 5 years ago
parent
commit
600b353849
6 changed files with 19 additions and 9 deletions
  1. +6
    -1
      options/locale/locale_en-US.ini
  2. +7
    -2
      options/locale/locale_zh-CN.ini
  3. +1
    -1
      templates/repo/cloudbrain/index.tmpl
  4. +3
    -3
      templates/repo/cloudbrain/new.tmpl
  5. +1
    -1
      templates/repo/header.tmpl
  6. +1
    -1
      templates/repo/settings/options.tmpl

+ 6
- 1
options/locale/locale_en-US.ini View File

@@ -752,6 +752,10 @@ unit_disabled = The site administrator has disabled this repository section.
language_other = Other
datasets = Datasets
datasets.desc = Enable Dataset
cloudbrain=cloudbrain
cloudbrain.new=New cloudbrain
cloudbrain.desc=cloudbrain
cloudbrain.cancel=Cancel

template.items = Template Items
template.git_content = Git Content (Default Branch)
@@ -1420,7 +1424,8 @@ settings.use_external_wiki = Use External Wiki
settings.external_wiki_url = External Wiki URL
settings.external_wiki_url_error = The external wiki URL is not a valid URL.
settings.external_wiki_url_desc = Visitors are redirected to the external wiki URL when clicking the wiki tab.
settings.dataset_desc= Enable Repository Dataset
settings.dataset_desc = Enable Repository Dataset
settings.cloudbrain_desc = Enable Cloudbarin
settings.issues_desc = Enable Repository Issue Tracker
settings.use_internal_issue_tracker = Use Built-In Issue Tracker
settings.use_external_issue_tracker = Use External Issue Tracker


+ 7
- 2
options/locale/locale_zh-CN.ini View File

@@ -751,8 +751,12 @@ pick_reaction=选择你的表情
reactions_more=再加载 %d
unit_disabled=站点管理员已禁用此项目单元。
language_other=其它
datasets = 数据集
datasets.desc = 数据集功能
datasets=数据集
datasets.desc=数据集功能
cloudbrain=云脑
cloudbrain.new=新建任务
cloudbrain.desc=云脑功能
cloudbrain.cancel=取消

template.items=模板选项
template.git_content=Git数据(默认分支)
@@ -1423,6 +1427,7 @@ settings.external_wiki_url=外部 Wiki 链接
settings.external_wiki_url_error=外部百科链接无效
settings.external_wiki_url_desc=当点击工单标签时,访问者将被重定向到外部工单系统的URL。
settings.dataset_desc=启用数据集
settings.cloudbrain_desc = 启用云脑
settings.issues_desc=启用工单系统
settings.use_internal_issue_tracker=使用内置的轻量级工单管理系统
settings.use_external_issue_tracker=使用外部的工单管理系统


+ 1
- 1
templates/repo/cloudbrain/index.tmpl View File

@@ -4,7 +4,7 @@
<div class="ui container">
<div class="ui three column stackable grid">
<div class="column">
<h2>{{.i18n.Tr "cloudbrain"}}</h2>
<h2>{{.i18n.Tr "repo.cloudbrain"}}</h2>
</div>
<div class="column">
</div>


+ 3
- 3
templates/repo/cloudbrain/new.tmpl View File

@@ -1,13 +1,13 @@
{{template "base/head" .}}
<div class="repository new repo">
{{template "repo/header" .}}
{{template "repo/header" .}}
<div class="ui middle very relaxed page grid">
<div class="column">
{{template "base/alert" .}}
<form class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<h3 class="ui top attached header">
New Cloudbrain task
{{.i18n.Tr "repo.cloudbrain.new"}}
</h3>
<div class="ui attached segment">
<br>
@@ -27,7 +27,7 @@
<div class="inline field">
<label></label>
<button class="ui green button">
Create Cloudbrain
{{.i18n.Tr "repo.cloudbrain.new"}}
</button>
<a class="ui button" href="/">Cancel</a>
</div>


+ 1
- 1
templates/repo/header.tmpl View File

@@ -141,7 +141,7 @@

{{if .Permission.CanRead $.UnitTypeCloudBrain}}
<a class="{{if .PageIsCloudBrain}}active{{end}} item" href="{{.RepoLink}}/cloudbrain">
{{svg "octicon-file-submodule" 16}} {{.i18n.Tr "cloudbrains"}}
{{svg "octicon-file-submodule" 16}} {{.i18n.Tr "repo.cloudbrain"}}
</a>
{{end}}



+ 1
- 1
templates/repo/settings/options.tmpl View File

@@ -143,7 +143,7 @@

{{$isDatasetEnabled := .Repository.UnitEnabled $.UnitTypeDatasets }}
<div class="inline field">
<label>{{.i18n.Tr "repo.dataset"}}</label>
<label>{{.i18n.Tr "repo.datasets"}}</label>
<div class="ui checkbox">
<input class="enable-system" name="enable_dataset" type="checkbox" {{if $isDatasetEnabled}}checked{{end}}>
<label>{{.i18n.Tr "repo.settings.dataset_desc"}}</label>


Loading…
Cancel
Save