Add redirect section.
This commit is contained in:
parent
2213b4cf37
commit
04bab185f6
2 changed files with 44 additions and 11 deletions
|
@ -66,7 +66,7 @@
|
|||
<td>Route Rule</td>
|
||||
</tr>
|
||||
<tr *ngFor="let route of p.routes; let ri = index;">
|
||||
<td><span class="has-text-grey" title="{{ route.title }}">{{ route.rule }}</span></td>
|
||||
<td><code class="has-text-grey" title="{{ route.title }}">{{ route.rule }}</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -125,6 +125,39 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="p.redirect">
|
||||
<hr>
|
||||
<div class="columns">
|
||||
<div class="column is-3">
|
||||
<h2>Redirect</h2>
|
||||
</div>
|
||||
<div class="column is-9">
|
||||
<div class="field is-grouped is-grouped-multiline" *ngIf="p.redirect.entryPoint">
|
||||
<div class="control">
|
||||
<div class="tags has-addons">
|
||||
<span class="tag is-info">{{ p.redirect.permanent?"Permanent":"Temporary" }}</span>
|
||||
<span class="tag is-light">to</span>
|
||||
<span class="tag is-info">{{ p.redirect.entryPoint }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="!p.redirect.entryPoint">
|
||||
<div class="padding-5-10">
|
||||
<span class="tag is-info">{{ p.redirect.permanent?"Permanent":"Temporary" }}</span>
|
||||
</div>
|
||||
<div class="padding-5-10">
|
||||
<span class="tag is-info">From</span>
|
||||
<code class="has-text-grey">{{ p.redirect.regex }}</code>
|
||||
</div>
|
||||
<div class="padding-5-10">
|
||||
<span class="tag is-info">To</span>
|
||||
<code class="has-text-grey">{{ p.redirect.replacement }}</code>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="p.basicAuth && p.basicAuth.length">
|
||||
<hr/>
|
||||
<h2>Basic Authentication</h2>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
@import 'colors'
|
||||
@import '../../node_modules/bulma/sass/utilities/all'
|
||||
@import '../../node_modules/bulma/sass/base/all'
|
||||
@import '../../node_modules/bulma/sass/grid/columns'
|
||||
@import '../../node_modules/bulma/sass/grid/all'
|
||||
@import '../../node_modules/bulma/sass/elements/container'
|
||||
@import '../../node_modules/bulma/sass/elements/tag'
|
||||
@import '../../node_modules/bulma/sass/elements/box'
|
||||
|
|
Loading…
Reference in a new issue