Skip to content

Commit

Permalink
Updated layout of settings modal due to #1000
Browse files Browse the repository at this point in the history
  • Loading branch information
tidyui committed Nov 6, 2020
1 parent 31b1a89 commit 5880b2e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<li class="nav-item">
<a href="#" class="nav-link" :class="{ active: selectedSetting === 'uid-seo' }" v-on:click.prevent="selectSetting('uid-seo')">@Localizer.General["SEO"]</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" :class="{ active: selectedSetting === 'uid-sharing' }" v-on:click.prevent="selectSetting('uid-sharing')">@Localizer.General["Sharing"]</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" :class="{ active: selectedSetting === 'uid-advanced' }" v-on:click.prevent="selectSetting('uid-advanced')">@Localizer.General["Advanced"]</a>
</li>
Expand Down Expand Up @@ -143,28 +146,30 @@
</div>
</div>
<div class="form-group">
<label for="metaIndex">@Localizer.Page["Meta index"]</label>
<label for="metaIndex">@Localizer.Content["Meta index"]</label>
<div class="form-switch">
<button id="metaIndex" v-on:click.prevent="metaIndex = !metaIndex" class="switch" :aria-pressed="metaIndex"><span></span></button>
<label for="metaIndex" class="form-check-label">@Localizer.Page["If the page should be index by search engines."]</label>
<label for="metaIndex" class="form-check-label">@Localizer.Page["If the page should be indexed by search engines."]</label>
</div>
</div>
<div class="form-group">
<label for="metaFollow">@Localizer.Page["Meta follow"]</label>
<label for="metaFollow">@Localizer.Content["Meta follow"]</label>
<div class="form-switch">
<button id="metaFollow" v-on:click.prevent="metaFollow = !metaFollow" class="switch" :aria-pressed="metaFollow"><span></span></button>
<label for="metaFollow" class="form-check-label">@Localizer.Page["If links from this page should be indexed."]</label>
</div>
</div>
<div class="form-group">
<div class="d-flex">
<label><strong>@Localizer.Page["Meta priority"]</strong></label>
<label><strong>@Localizer.Content["Meta priority"]</strong></label>
<span class="ml-auto">{{ metaPriorityDescription }}</span>
</div>
<input v-model="metaPriority" type="range" class="custom-range" min="0" max="1" step="0.1">
<small>Search engine priority, compared to other pages in the same site.</small>
<small>@Localizer.Content["Search engine priority, compared to other content in the same site."]</small>
</div>
</div>

<div :class="{ 'd-none': selectedSetting != 'uid-sharing' }">
<div class="form-group">
<label>@Localizer.Page["Og title"]</label>
<div class="input-group">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<li class="nav-item">
<a href="#" class="nav-link" :class="{ active: selectedSetting === 'uid-seo' }" v-on:click.prevent="selectSetting('uid-seo')">@Localizer.General["SEO"]</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" :class="{ active: selectedSetting === 'uid-sharing' }" v-on:click.prevent="selectSetting('uid-sharing')">@Localizer.General["Sharing"]</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" :class="{ active: selectedSetting === 'uid-advanced' }" v-on:click.prevent="selectSetting('uid-advanced')">@Localizer.General["Advanced"]</a>
</li>
Expand Down Expand Up @@ -125,27 +128,30 @@
</div>
</div>
<div class="form-group">
<label for="metaIndex">@Localizer.Page["Meta index"]</label>
<label for="metaIndex">@Localizer.Content["Meta index"]</label>
<div class="form-switch">
<button id="metaIndex" v-on:click.prevent="metaIndex = !metaIndex" class="switch" :aria-pressed="metaIndex"><span></span></button>
<label for="metaIndex" class="form-check-label">@Localizer.Page["If the page should be index by search engines."]</label>
<label for="metaIndex" class="form-check-label">@Localizer.Post["If the post should be indexed by search engines."]</label>
</div>
</div>
<div class="form-group">
<label for="metaFollow">@Localizer.Page["Meta follow"]</label>
<label for="metaFollow">@Localizer.Content["Meta follow"]</label>
<div class="form-switch">
<button id="metaFollow" v-on:click.prevent="metaFollow = !metaFollow" class="switch" :aria-pressed="metaFollow"><span></span></button>
<label for="metaFollow" class="form-check-label">@Localizer.Page["If links from this page should be indexed."]</label>
<label for="metaFollow" class="form-check-label">@Localizer.Post["If links from this post should be indexed."]</label>
</div>
</div>
<div class="form-group">
<div class="d-flex">
<label><strong>@Localizer.Page["Meta priority"]</strong></label>
<label><strong>@Localizer.Content["Meta priority"]</strong></label>
<span class="ml-auto">{{ metaPriorityDescription }}</span>
</div>
<input v-model="metaPriority" type="range" class="custom-range" min="0" max="1" step="0.1">
<small>Search engine priority, compared to other pages in the same site.</small>
<small>@Localizer.Content["Search engine priority, compared to other content in the same site."]</small>
</div>
</div>

<div :class="{ 'd-none': selectedSetting != 'uid-sharing' }">
<div class="form-group">
<label>@Localizer.Page["Og title"]</label>
<div class="input-group">
Expand Down

0 comments on commit 5880b2e

Please sign in to comment.