Let the repository description support the markdown format.

Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
FangyuanCheng 2018-10-30 17:17:24 +08:00
parent e7e2312e16
commit f55666d593
8 changed files with 19 additions and 6 deletions

View File

@ -24,13 +24,15 @@
<form #repoInfoForm="ngForm">
<div id="info-edit-button">
<button class="btn btn-sm" [disabled]="editing || !hasProjectAdminRole " (click)="editInfo()" ><clr-icon shape="pencil" size="16"></clr-icon>&nbsp;{{'BUTTON.EDIT' | translate}}</button>
<img [src]="'../../../src/images/markdown.png'" class="markdown">
<span>{{ 'REPOSITORY.MARKDOWN' | translate }}</span>
</div>
<div *ngIf="!editing">
<div *ngIf="!hasInfo()" class="no-info-div">
<p>{{'REPOSITORY.NO_INFO' | translate }}<p>
</div>
<div *ngIf="hasInfo()" class="info-div">
<pre class="info-pre">{{ imageInfo }}</pre>
<div class="info-pre" [innerHTML]="imageInfo | markdown"></div>
</div>
</div>
<div *ngIf="editing">

View File

@ -47,6 +47,12 @@
#info-edit-button {
margin-top: 0px;
margin-bottom: 12px;
font-size: 12px;
.markdown {
width: 20px;
margin-right: 10px;
margin-left: 10px;
}
}
#images-container {

View File

@ -478,7 +478,8 @@
"ACTION": "ACTION",
"DEPLOY": "DEPLOY",
"ADDITIONAL_INFO": "Add Additional Info",
"REPO_NAME": "Repository"
"REPO_NAME": "Repository",
"MARKDOWN": "Styling with Markdown is supported"
},
"HELM_CHART": {
"HELMCHARTS": "Charts",

View File

@ -476,7 +476,8 @@
"ACTION": "ACTION",
"DEPLOY": "DEPLOY",
"ADDITIONAL_INFO": "Add Additional Info",
"REPO_NAME": "Repository"
"REPO_NAME": "Repository",
"MARKDOWN": "Styling with Markdown is supported"
},
"HELM_CHART": {
"HELMCHARTS": "Charts",

View File

@ -454,7 +454,8 @@
"ACTION": "ACTION",
"DEPLOY": "DEPLOY",
"ADDITIONAL_INFO": "Add Additional Info",
"REPO_NAME": "Repository"
"REPO_NAME": "Repository",
"MARKDOWN": "Styling with Markdown is supported"
},
"HELM_CHART": {
"HELMCHARTS": "Charts",

View File

@ -473,7 +473,8 @@
"ADD_LABELS": "Adicionar labels",
"ACTION": "AÇÃO",
"DEPLOY": "DEPLOY",
"ADDITIONAL_INFO": "Adicionar informação adicional"
"ADDITIONAL_INFO": "Adicionar informação adicional",
"MARKDOWN": "Styling with Markdown is supported"
},
"HELM_CHART": {
"HELMCHARTS": "Charts",

View File

@ -476,7 +476,8 @@
"ACTION": "操作",
"DEPLOY": "部署",
"ADDITIONAL_INFO": "添加信息",
"REPO_NAME": "镜像仓库"
"REPO_NAME": "镜像仓库",
"MARKDOWN": "支持使用Markdown进行样式设置"
},
"HELM_CHART": {
"HELMCHARTS": "Charts",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB