Implement "Need Help?" button

This button guides the user to publish a new issue in the GitHub
repository.

Fixes: https://github.com/resin-io/etcher/issues/177
This commit is contained in:
Juan Cruz Viotti 2016-03-02 12:30:51 -04:00
parent bd009a75b0
commit 334eebe9c9
4 changed files with 14 additions and 2 deletions

View File

@ -5979,5 +5979,8 @@ h1, h2, h3, h4, h5, h6 {
margin-top: 0; }
.section-header {
padding: 5px;
padding: 5px 8px;
font-size: 15px; }
.section-header > .btn {
padding-left: 3px;
padding-right: 3px; }

View File

@ -26,6 +26,10 @@
</head>
<body ng-app="Etcher" style="display: none">
<header class="section-header" ng-controller="NavigationController as navigation">
<button class="btn btn-link" ng-click="navigation.open('https://github.com/resin-io/etcher/issues/new')">
<span class="glyphicon glyphicon-question-sign"></span> Need Help?
</button>
<button class="btn btn-link" ui-sref="settings" ng-hide="navigation.isState('settings')">
<span class="glyphicon glyphicon-cog"></span>
</button>

View File

@ -195,6 +195,11 @@ h1, h2, h3, h4, h5, h6 {
.section-header {
@extend .text-right;
padding: 5px;
padding: 5px 8px;
font-size: 15px;
& > .btn {
padding-left: 3px;
padding-right: 3px;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 119 KiB