Skip to content

Commit

Permalink
Add alerts on the welcome page + add cube in navbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Gadeau committed Jun 11, 2016
1 parent 830e984 commit 8859e03
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/css/panel.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/css/panel.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/scss/panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ html, body {
background-color: #0e0e0e;
}
}
img#sugar-cube {
height: 22px;
}
}

#main {
Expand Down
2 changes: 1 addition & 1 deletion src/templates/appstream.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div data-view="table"></div>
{{else}}
<div data-alert="debugMode" class="alert-box round">
<div data-alert="debugMode" class="alert-box">
Please activate the debug mode by clicking on the Sugar cube in your browser header bar to access to this feature.
</div>
{{/if_debugMode}}
12 changes: 11 additions & 1 deletion src/templates/general.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@
</ul>
</div>
</div>

<hr>
{{#if_debugMode}}
<div data-alert="debugMode" class="alert-box success">
<strong>$view feature activated!</strong> Select a DOM element with the default chrome element selector,
the corresponding sidecar component will be set globally in <strong>$view</strong> variable so you can access it from the console.
</div>
{{else}}
<div data-alert="debugMode" class="alert-box">
Please activate the debug mode by clicking on the Sugar cube in your browser header bar to activate the amazing <strong>$view</strong> feature!
</div>
{{/if_debugMode}}
2 changes: 1 addition & 1 deletion src/templates/navbar.handlebars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a class="selected" href="#general">Settings</a><a href="#appstream">Application Stream</a><a href="#structure">Structure</a><a href="#perfReport">Perf report</a><a href="#performance">Render times</a><a href="#generate">Generate records</a>
<a class="selected" href="#general"><img id="sugar-cube" src="../img/sugarcube.png"></a><a href="#appstream">Application Stream</a><a href="#structure">Structure</a><a href="#perfReport">Perf report</a><a href="#performance">Render times</a><a href="#generate">Generate records</a>
2 changes: 1 addition & 1 deletion src/templates/perf-report.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</tbody>
</table>
{{else}}
<div data-alert="debugMode" class="alert-box round">
<div data-alert="debugMode" class="alert-box">
Please activate the debug mode by clicking on the Sugar cube in your browser header bar to access to this feature.
</div>
{{/if_debugMode}}
2 changes: 1 addition & 1 deletion src/templates/structure.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</div>
</div>
{{else}}
<div data-alert="debugMode" class="alert-box round">
<div data-alert="debugMode" class="alert-box">
Please activate the debug mode by clicking on the Sugar cube in your browser header bar to access to this feature.
</div>
{{/if_debugMode}}
21 changes: 15 additions & 6 deletions src/templates/templates.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8859e03

Please sign in to comment.