Skip to content

Commit

Permalink
remove unnecessary template returns
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Jul 15, 2014
1 parent 8d7cfd5 commit 1bc57f3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions lib/Galileo/files/templates/admin/pages.html.ep
Expand Up @@ -19,7 +19,7 @@
%= tag th => "Title"
%= tag th => "Author"
%= tag th => "Actions"
%= end
% end
% while (my $page = $pages->next) {
% my $name = $page->name;
% my $id = $page->page_id;
Expand All @@ -30,7 +30,7 @@
% my $author = $page->author->name;
%= tag td => begin
%= tag a => href => "/admin/user/$author" => "$author"
%= end
% end
%= tag td => begin
<div class="btn-group">
<a class="btn" href="<%= qq{/page/$name} %>"><i class="icon-eye-open"></i></a>
Expand All @@ -39,10 +39,10 @@
<i class="icon-trash"></i>
</a>
</div>
%= end
%= end
% end
% end
% }
%= end
% end

%= javascript begin
function confirm_delete(id) {
Expand All @@ -59,4 +59,4 @@ function delete_page(id) {
function(){ $( '#row-' + id ).remove(); }
);
}
%= end
% end
2 changes: 1 addition & 1 deletion lib/Galileo/files/templates/admin/user.html.ep
Expand Up @@ -23,7 +23,7 @@
};
sendViaWS("<%= url_for('storeuser')->to_abs %>", data);
}
%= end
% end

<form class="form-horizontal">
<legend>Names</legend>
Expand Down
8 changes: 4 additions & 4 deletions lib/Galileo/files/templates/admin/users.html.ep
Expand Up @@ -10,7 +10,7 @@
%= tag th => "Author"
%= tag th => "Admin"
%= tag th => "Edit"
%= end
% end
% while (my $user = $users->next) {
% my $name = $user->name;
%= tag tr => begin
Expand All @@ -21,7 +21,7 @@
%= tag td => $user->is_admin
%= tag td => begin
%= tag a => href => "/admin/user/$name" => "Edit"
%= end
%= end
% end
% end
% }
%= end
% end
2 changes: 1 addition & 1 deletion lib/Galileo/files/templates/menu/edit.html.ep
Expand Up @@ -19,7 +19,7 @@ $(function() {
items: "li:not(.nav-header)"
}).disableSelection();
});
%= end
% end

<div class="row">
<div class="span5">
Expand Down
4 changes: 2 additions & 2 deletions lib/Galileo/files/templates/nav_menu.html.ep
Expand Up @@ -12,9 +12,9 @@
<li>
%= tag a => href => "/page/" . $page->name => begin
%= $page->title
%= end
% end
</li>
% }
</ul>
</div>
%= end
% end
2 changes: 1 addition & 1 deletion lib/Galileo/files/templates/page/edit.html.ep
Expand Up @@ -21,7 +21,7 @@ $(function () {
editor = new Editor("<%= $name =%>", "<%= url_for('storepage')->to_abs =%>", <%= $sanitize =%>);
});

%= end
% end

<div class="wmd-panel">
<div class="well form-inline">
Expand Down
2 changes: 1 addition & 1 deletion lib/Galileo/files/templates/user_menu.html.ep
Expand Up @@ -68,7 +68,7 @@
});
}

%= end
% end

% } else {
<form class="well" method="post" action="/login" id="login">
Expand Down

0 comments on commit 1bc57f3

Please sign in to comment.