Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
home button
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-sap committed Jan 10, 2017
1 parent 2d1226b commit e4034b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const clickHandlers = {
star () { $.trigger('issue/star', config.get('state.issue')); starBox.addClass('is-starred'); },
unstar () { $.trigger('issue/unstar', config.get('state.issue')); starBox.removeClass('is-starred'); },
hideNotifications () { $.trigger('toggle-notifications', false); },
showNotifications () { $.trigger('toggle-notifications', true); }
showNotifications () { $.trigger('toggle-notifications', true); },
home () { $.trigger('change-url', config.get('homeUrl') || ''); }
};


Expand Down
2 changes: 1 addition & 1 deletion app/settings/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.settings h1 { margin: 0 0 20px 0; }

.settings-form label { display: inline-block; padding: 5px; width: 100%; text-align: right; }
.settings-form input { display: inline-block; padding: 5px; margin-left: 10px; width: calc(100% - 85px); }
.settings-form input { display: inline-block; padding: 5px; margin-left: 10px; width: calc(100% - 140px); }
.settings-form input:invalid { background-color: rgba(255, 0, 0, 0.1); }
.settings-buttons { margin: 20px 0 0 0; text-align: right; }
.settings-buttons .btn { font-size: 13px; }
Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<a href="#" class="header-btn js-next ion-md-arrow-forward" title="Forward" data-go="next"></a>
<a href="#" class="header-btn js-refresh ion-md-refresh" title="Refresh" data-go="refresh"></a>
<a href="#" class="header-btn js-stop ion-md-close" title="Stop" data-go="stop"></a>
<a href="#" class="header-btn js-home ion-md-home" title="Home" data-go="home"></a>
<input class="addressbar" autofocus />
<i class="header-btn js-sync spin ion-ios-nuclear"></i>

Expand Down Expand Up @@ -61,6 +62,7 @@ <h1>Notifications
<h1>Preferences</h1>
<form class="settings-form">
<label>Base URL: <input name="baseUrl" required></label>
<label>Home button URL: <input name="homeUrl" placeholder="Defaults to Base URL"></label>
<div class="settings-buttons">
<a href="#" class="btn btn-left btn-folder" data-go="folder">Open settings folder</a>
<button class="btn btn-cancel" data-go="cancel" type="button">Cancel</button>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "github-browser",
"productName": "Github Browser",
"description": "Github browser.",
"version": "1.0.0",
"version": "0.2.0",
"main": "index.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit e4034b3

Please sign in to comment.