Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moved dashboard button from front-page to dashboard page as a tips bu…

…tton
  • Loading branch information...
commit 794ff4d163750c68a13a8b3d140bb2332bb117ac 1 parent 74fe0f3
@JonJagger authored
View
2  app/assets/javascripts/cyberdojo-dialog_about.js
@@ -12,7 +12,7 @@ var cyberDojo = (function($cd, $j) {
var practice =
$cd.divPanel(
- 'In cyber-dojo your aim is to <em>practice</em><br/>' +
+ 'In a cyber-dojo the team <em>practices</em><br/>' +
'by going <em>slower</em><br/>' +
'and focusing on <em>improving</em><br/>' +
'rather than finishing.'
View
4 ...javascripts/cyberdojo-dialog_dashboard.js → ...cripts/cyberdojo-dialog_dashboard_tips.js
@@ -2,7 +2,7 @@
var cyberDojo = (function($cd, $j) {
- $cd.dialog_dashboard = function() {
+ $cd.dialog_dashboard_tips = function() {
var redFirst =
$cd.divPanel(
@@ -33,7 +33,7 @@ var cyberDojo = (function($cd, $j) {
var dashboard = $j($cd.makeTable(redFirst,refactor,amber));
- $cd.dialog(dashboard.html(), 450, 'dasboard');
+ $cd.dialog(dashboard.html(), 450, 'tips');
};
return $cd;
View
18 app/views/dashboard/_tips.html.erb
@@ -0,0 +1,18 @@
+
+<script language="javascript" type="text/javascript"><!--
+
+$j(document).ready(function() {
+
+ $j('#tips').click(function() {
+ $cd.dialog_dashboard_tips();
+ });
+
+});
+
+//--></script>
+
+<input type="button"
+ class="tiny button"
+ title="Show tips"
+ id="tips"
+ value="tips"/>
View
2  app/views/dashboard/show.html.erb
@@ -62,6 +62,8 @@ $j(function() {
<td class="panel" valign="top">
<%= render :partial => 'shared/feedback' -%>
+ <br/>
+ <%= render :partial => 'tips' -%>
</td>
</tr>
</table>
View
4 app/views/dojo/_bottom_buttons.html.erb
@@ -4,7 +4,7 @@
$j(document).ready(function() {
$j.each(
- ['about','basics','dashboard','faqs','feedback','links','source','tips','why'],
+ ['about','basics','faqs','feedback','links','source','tips','why'],
function(i,name) {
$j('#' + name).click(function() {
$cd['dialog_' + name]();
@@ -15,7 +15,7 @@ $j(document).ready(function() {
//--></script>
-<% [ 'about', 'basics', 'dashboard', 'faqs', 'feedback', 'links', 'source', 'tips', 'why' ].each do |name| -%>
+<% [ 'about', 'basics', 'faqs', 'feedback', 'links', 'source', 'tips', 'why' ].each do |name| -%>
<input type="button"
class="tiny button"
id="<%=name-%>"
View
1  issues.txt
@@ -26,7 +26,6 @@ MINOR
$cd.alert() in cyberdojo-helpers.js can be refactored to use $cd.popupDialog().
upon start-coding the server could run cyber-dojo.sh and open the output file in the editor.
wrong ID alert popup font is too large
-move homepage dashboard button to dashboard page as part of help button
add help button on diff page
add help button on dashboard page
add donate button to run-tests/dashboard/diff pages
Please sign in to comment.
Something went wrong with that request. Please try again.