mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Merge pull request #178 from resin-io/feat/help-button
Implement "Need Help?" button
This commit is contained in:
commit
384e55ae2c
@ -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; }
|
||||
|
@ -195,8 +195,6 @@ app.controller('AppController', function(
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
this.open = shell.openExternal;
|
||||
});
|
||||
|
||||
app.controller('SettingsController', function(SettingsService) {
|
||||
@ -205,6 +203,7 @@ app.controller('SettingsController', function(SettingsService) {
|
||||
|
||||
app.controller('NavigationController', function($state) {
|
||||
this.isState = $state.is;
|
||||
this.open = shell.openExternal;
|
||||
});
|
||||
|
||||
app.controller('FinishController', function($state, SelectionStateService, SettingsService) {
|
||||
|
@ -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>
|
||||
@ -37,16 +41,16 @@
|
||||
|
||||
<main class="wrapper" ui-view></main>
|
||||
|
||||
<footer class="section-footer row between-xs middle-xs">
|
||||
<footer class="section-footer row between-xs middle-xs" ng-controller="NavigationController as navigation">
|
||||
<div class="col-xs">
|
||||
<div class="box text-left">
|
||||
<hero-icon path="images/resin.svg" width="85px" height="auto" ng-click="app.open('https://resin.io')"></hero-icon>
|
||||
<hero-icon path="images/resin.svg" width="85px" height="auto" ng-click="navigation.open('https://resin.io')"></hero-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs">
|
||||
<div class="box text-right">
|
||||
<hero-caption><span ng-click="app.open('https://github.com/resin-io/etcher')">AN OPEN SOURCE PROJECT</span> BY <span ng-click="app.open('https://resin.io')">RESIN.IO</span></hero-caption>
|
||||
<hero-caption><span ng-click="navigation.open('https://github.com/resin-io/etcher')">AN OPEN SOURCE PROJECT</span> BY <span ng-click="navigation.open('https://resin.io')">RESIN.IO</span></hero-caption>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 119 KiB |
Loading…
x
Reference in New Issue
Block a user