forked from phacility/phabricator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a "jump nav" element to the homepage, for quick tool/object navig…
…ation Summary: - Restore quick methods for getting to common features (upload file, create task, etc.) - Provide a flexible cli-like navigation element similar to stuff used at Facebook (bunny1 / lolbunny). Test Plan: Used jump nav and nav buttons. Reviewers: btrahan, fratrik Reviewed By: btrahan CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1619
- Loading branch information
epriestley
committed
Feb 16, 2012
1 parent
29acc84
commit 965a4da
Showing
8 changed files
with
256 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@title Jump Nav User Guide | ||
@group userguide | ||
|
||
Command reference for the jump nav. | ||
|
||
= Overview = | ||
|
||
The jump nav provides a quick way to navigate to tools and objects: just type | ||
a navigational command into the box and press return. | ||
|
||
= Supported Commands = | ||
|
||
- **help** - Jump to this document. | ||
- **T** - Jump to Maniphest. | ||
- **T123** - Jump to Maniphest Task 123. | ||
- **D** - Jump to Differential. | ||
- **D123** - Jump to Differential Revision 123. | ||
- **r** - Jump to Diffusion. | ||
- **rXYZ** - Jump to Diffusion Repository XYZ. | ||
- **rXYZabcdef** - Jump to Diffusion Commit rXYZabcdef. | ||
- **(default)** - Search for input. |
26 changes: 26 additions & 0 deletions
26
webroot/rsrc/css/application/directory/phabricator-jump-nav.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @provides phabricator-jump-nav | ||
*/ | ||
|
||
.phabricator-jump-nav { | ||
font-size: 18px; | ||
width: 98%; | ||
padding: .25em 1%; | ||
} | ||
|
||
.phabricator-jump-nav-caption { | ||
font-size: 11px; | ||
color: #666666; | ||
margin-top: 4px; | ||
} | ||
|
||
.phabricator-jump-nav-buttons { | ||
margin-top: 1em; | ||
text-align: center; | ||
} | ||
|
||
.phabricator-jump-nav-buttons a.button { | ||
margin-right: .75em; | ||
width: 125px; | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* @provides javelin-behavior-phabricator-autofocus | ||
* @requires javelin-behavior javelin-dom | ||
*/ | ||
|
||
JX.behavior('phabricator-autofocus', function(config) { | ||
try { JX.$(config.id).focus(); } catch (x) { } | ||
}); |