projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Finished chapter 11
[depot.git]
/
app
/
views
/
admin
/
index.html.erb
diff --git a/app/views/admin/index.html.erb
b/app/views/admin/index.html.erb
new file mode 100644
(file)
index 0000000..
ec658d4
--- /dev/null
+++ b/
app/views/admin/index.html.erb
@@ -0,0
+1,4
@@
+
+<h1>Welcome, <%= User.find(session[:user_id]).name %></h1>
+It's <%= Time.now %>.
+We have <%= pluralize(@total_orders, "order" ) %>.
\ No newline at end of file