forked from mozilla/testpilot
-
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.
Merge pull request mozilla#119 from mozilla/101-style-home-and-experi…
…ment-pages 101 style home and experiment pages
- Loading branch information
Showing
48 changed files
with
726 additions
and
637 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
92 changes: 84 additions & 8 deletions
92
idea_town/frontend/static-src/app/templates/experiment-page.js
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 |
---|---|---|
@@ -1,12 +1,88 @@ | ||
export default ` | ||
<section class="page" data-hook="experiment-page"> | ||
<h1>{{title}}</h1> | ||
{{#isInstalled}} | ||
<button data-hook="uninstall">Uninstall</button> | ||
{{/isInstalled}} | ||
{{^isInstalled}} | ||
<button data-hook="install">Install</button> | ||
{{/isInstalled}} | ||
<section id="details" class="page" data-hook="experiment-page"> | ||
<div id="details"> | ||
<div class="details-sticker"></div> | ||
<div class="details-header-wrapper"> | ||
<div class="details-header"> | ||
<h1>{{title}}</h1> | ||
<div class="idea-controls"> | ||
{{#isInstalled}} | ||
<button data-hook="install" class="button primary">Enable {{title}}</button> | ||
{{/isInstalled}} | ||
{{^isInstalled}} | ||
<button data-hook="uninstall" class="button primary">Disable {{title}}</button> | ||
{{/isInstalled}} | ||
<div class="user-count">7,654,321</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="details-content"> | ||
<div class="details-overview"> | ||
<img src="{{thumbnail}}" width="260"> | ||
<section> | ||
<h3>Measurements</h3> | ||
<p class="disclaimer">All data is collected anonymously and used only to help us improve this test. <a href="">Learn more.</a></p> | ||
<ul class="measurement"> | ||
<li>Usage per session</li> | ||
<li>Index of selected results</li> | ||
<li>Time spent searching</li> | ||
</ul> | ||
</section> | ||
<section> | ||
<h3>Brought to you by</h3> | ||
<ul class="contributors"> | ||
<li> | ||
<img src="images/[email protected]" width="56" height="56"> | ||
<div class="contributor"> | ||
<p class="name">Chris P. Bacon</span> | ||
<p class="title">Senior Strategy Dingus</span> | ||
</div> | ||
</li> | ||
<li> | ||
<img src="images/[email protected]" width="56" height="56"> | ||
<div class="contributor"> | ||
<p class="name">Chris P. Bacon</span> | ||
<p class="title">Senior Strategy Dingus</span> | ||
</div> | ||
</li> | ||
<li> | ||
<img src="images/[email protected]" width="56" height="56"> | ||
<div class="contributor"> | ||
<p class="name">Chris P. Bacon</span> | ||
<p class="title">Senior Strategy Dingus</span> | ||
</div> | ||
</li> | ||
</ul> | ||
</section> | ||
<section> | ||
<h3>Details</h3> | ||
<table class="stats"> | ||
<tr> | ||
<td>Version</td> | ||
<td>0.4.5 <a href="">changelog</a></td> | ||
</tr> | ||
<tr> | ||
<td>Last Update</td> | ||
<td>10/22/15</td> | ||
</tr> | ||
<tr> | ||
<td>Repo</td> | ||
<td><a href="">https://github.com/mozilla/snooze-tabs<a></td> | ||
</tr> | ||
</table> | ||
</section> | ||
</div> | ||
<div class="details-description"> | ||
<p class="copy">{{description}} | ||
{{#details}} | ||
<div class="details-image"> | ||
<img src="{{image}}" width="680"> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
`; | ||
|
8 changes: 3 additions & 5 deletions
8
idea_town/frontend/static-src/app/templates/experiment-row-view.js
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
export default ` | ||
<li data-hook="show-detail" | ||
// toggle a class for styling purposes: | ||
class="{{#isInstalled}} active {{/isInstalled}}"> | ||
<img width="200" height="200" src="{{thumbnail}}"> | ||
<li data-hook="show-detail" class="idea-card {{#isInstalled}} active {{/isInstalled}}"> | ||
<div class="idea-preview-image" style="background: url({{thumbnail}}) no-repeat"></div> | ||
<h2>{{title}}</h2> | ||
<p>Status: {{^isInstalled}} Not {{/isInstalled}} Installed</p> | ||
<p>{{description}}</p> | ||
</li> | ||
`; | ||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export default ` | ||
<section class="page" data-hook="home-page"> | ||
<ul class="experiments"></ul> | ||
<ul id="idea-card-list" class="experiments"></ul> | ||
</section> | ||
`; | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.