Skip to content

Commit

Permalink
Adds show view links to view sections
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Oct 20, 2020
1 parent e50730b commit eabd057
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 12 deletions.
12 changes: 12 additions & 0 deletions src/webviews/apps/scss/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ header {
padding: 1px 3px;
}

.command--show-view {
&:before {
content: '\eb14';
font-family: codicon;
font-size: 14px;
font-weight: 400;
position: relative;
top: 3px;
left: -1px;
}
}

.container {
display: grid;
grid-template-areas: 'header header' 'cta cta' 'hero sidebar' 'content sidebar';
Expand Down
10 changes: 9 additions & 1 deletion src/webviews/apps/settings/partials/views.branches.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ <h2>
</a>
</h2>

<p class="section__header-hint">Adds a Branches view to visualize, explore, and manage Git branches</p>
<p class="section__header-hint">
Adds a Branches view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showBranchesView"
></a>
to visualize, explore, and manage Git branches
</p>
</div>

<div class="section__collapsible">
Expand Down
10 changes: 9 additions & 1 deletion src/webviews/apps/settings/partials/views.commits.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ <h2>
</a>
</h2>

<p class="section__header-hint">Adds a Commits view to visualize, explore, and manage Git commits</p>
<p class="section__header-hint">
Adds a Commits view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showCommitsView"
></a>
to visualize, explore, and manage Git commits
</p>
</div>

<div class="section__collapsible">
Expand Down
10 changes: 9 additions & 1 deletion src/webviews/apps/settings/partials/views.contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ <h2>
</a>
</h2>

<p class="section__header-hint">Adds a Contributors view to visualize, navigate, and explore contributors</p>
<p class="section__header-hint">
Adds a Contributors view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showContributorsView"
></a>
to visualize, navigate, and explore contributors
</p>
</div>

<div class="section__collapsible">
Expand Down
8 changes: 7 additions & 1 deletion src/webviews/apps/settings/partials/views.file-history.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ <h2>
</h2>

<p class="section__header-hint">
Adds a File History view to visualize, navigate, and explore the revision history of the current file
Adds a File History view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showFileHistoryView"
></a>
to visualize, navigate, and explore the revision history of the current file
</p>
</div>

Expand Down
9 changes: 7 additions & 2 deletions src/webviews/apps/settings/partials/views.line-history.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
</div>

<p class="section__header-hint">
Adds a Line History view to visualize, navigate, and explore the revision history of the selected lines of
current file
Adds a Line History view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showLineHistoryView"
></a>
to visualize, navigate, and explore the revision history of the selected lines of current file
</p>
</div>

Expand Down
8 changes: 7 additions & 1 deletion src/webviews/apps/settings/partials/views.remotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ <h2>
</h2>

<p class="section__header-hint">
Adds a Remotes view to visualize, explore, and manage Git remotes and remote branches
Adds a Remotes view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showRemotesView"
></a>
to visualize, explore, and manage Git remotes and remote branches
</p>
</div>

Expand Down
8 changes: 7 additions & 1 deletion src/webviews/apps/settings/partials/views.repositories.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
</div>

<p class="section__header-hint">
Adds a Repositories view to visualize, navigate, and explore Git repositories
Adds a Repositories view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showRepositoriesView"
></a>
to visualize, navigate, and explore Git repositories
</p>
</div>

Expand Down
10 changes: 8 additions & 2 deletions src/webviews/apps/settings/partials/views.searchAndCompare.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ <h2>
</h2>

<p class="section__header-hint">
Adds a Search &amp; Compare view to search and explore commit histories by message, author, files, id, etc,
or visualize comparisons between branches, tags, commits, and more
Adds a Search &amp; Compare view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showSearchAndCompareView"
></a>
to search and explore commit histories by message, author, files, id, etc, or visualize comparisons between
branches, tags, commits, and more
</p>
</div>

Expand Down
10 changes: 9 additions & 1 deletion src/webviews/apps/settings/partials/views.stashes.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ <h2>
</a>
</h2>

<p class="section__header-hint">Adds a Stashes view to visualize, explore, and manage Git stashes</p>
<p class="section__header-hint">
Adds a Stashes view
<a
class="command command--show-view"
title="Show View in Side Bar"
href="command:gitlens.showStashesView"
></a>
to visualize, explore, and manage Git stashes
</p>
</div>

<div class="section__collapsible">
Expand Down
6 changes: 5 additions & 1 deletion src/webviews/apps/settings/partials/views.tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ <h2>
</a>
</h2>

<p class="section__header-hint">Adds a Tags view to visualize, explore, and manage Git tags</p>
<p class="section__header-hint">
Adds a Tags view
<a class="command command--show-view" title="Show View in Side Bar" href="command:gitlens.showTagsView"></a>
to visualize, explore, and manage Git tags
</p>
</div>

<div class="section__collapsible">
Expand Down

0 comments on commit eabd057

Please sign in to comment.