8000 Update sidebar. · brusmax/demo.activeadmin.info@a2deb41 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2deb41

Browse files
committed
Update sidebar.
1 parent fc04f32 commit a2deb41

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

app/admin/orders.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
end
3939
end
4040

41-
sidebar "Demo: Check out the Code!" do
42-
link_to "app/admin/orders.rb", "https://github.com/gregbell/activeadmin-store/blob/demo/app/admin/orders.rb"
41+
sidebar "Active Admin Demo" do
42+
render('/admin/sidebar_links', :model => 'orders')
4343
end
4444
end

app/admin/products.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
end.join(content_tag("br")).html_safe
3636
end
3737

38-
sidebar "Demo: Check out the Code!" do
39-
link_to "app/admin/products.rb", "https://github.com/gregbell/activeadmin-store/blob/demo/app/admin/products.rb"
38+
sidebar "Active Admin Demo" do
39+
render('/admin/sidebar_links', :model => 'products')
4040
end
4141
end

app/admin/users.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
end
3636
end
3737

38-
sidebar "Demo: Check out the Code!" do
39-
link_to "app/admin/users.rb", "https://github.com/gregbell/activeadmin-store/blob/demo/app/admin/users.rb"
38+
sidebar "Active Admin Demo" do
39+
render('/admin/sidebar_links', :model => 'users')
4040
end
4141
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This is the demo app for <%= link_to "Active Admin", "http://activeadmin.info" %>.
2+
Don't hesitate to check out the
3+
<%= link_to("source code for this page", "https://github.com/gregbell/activeadmin-store/blob/demo/app/admin/#{model}.rb") %>,
4+
the <%= link_to("Documentation", "http://activeadmin.info/documentation.html") %>
5+
and the <%= link_to("Github Repo", "https://github.com/gregbell/active_admin") %>.

0 commit comments

Comments
 (0)
0