public
Description: Rails Sitemap Plugin / Site Map Plugin for Rails. A beautiful rails sitemap plugin that talks to Google, Yahoo and MSN when updated. Sitemap features clean handcrafted XHTML, XML with XSLT and custom finder options for your named routes.
Clone URL: git://github.com/queso/sitemap.git
Tweaked layout to be more backend oriented (i.e. no meta tags, etc) and 
removed all @site references.  Added shared nav to it to be DRY.  Made all 
three controllers use the layout.
queso (author)
Sat Jan 12 19:23:45 -0800 2008
commit  4caf91d5d64d8af34452f8c6299d454302ba83a5
tree    40126d5a1d415b7ebf866a50bba5b1b4ed700a32
parent  84561d986edf6b0cd74129fda9d14b2cfdda7cbc
...
1
 
2
3
4
...
1
2
3
4
5
0
@@ -1,4 +1,5 @@
0
 class SitemapSettingsController < ActionController::Base
0
+ layout "sitemap_plugin"
0
 
0
   def index
0
     @settings = SitemapSetting.find(:first) || SitemapSetting.create()
...
1
 
2
3
4
...
1
2
3
4
5
0
@@ -1,4 +1,5 @@
0
 class SitemapStaticLinksController < ActionController::Base
0
+ layout "sitemap_plugin"
0
   
0
   def index
0
     @static_links = SitemapStaticLink.find(:all)
...
1
 
2
3
4
...
1
2
3
4
5
0
@@ -1,4 +1,5 @@
0
 class SitemapWidgetsController < ActionController::Base
0
+ layout "sitemap_plugin"
0
   
0
   def index
0
     @widgets = SitemapWidget.find(:all)
...
4
5
6
7
8
9
10
11
 
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
 
47
48
49
...
52
53
54
55
 
56
57
58
...
4
5
6
 
 
 
 
 
7
8
9
10
11
 
 
 
 
 
 
 
 
 
 
 
 
12
13
14
15
16
17
 
 
 
 
 
 
 
 
 
 
 
 
 
18
19
20
21
22
...
25
26
27
 
28
29
30
31
0
@@ -4,46 +4,19 @@
0
 
0
 <head>
0
 
0
- <title>Sitemap: <%= (@site.name || "Rails Web Application") %></title>
0
-
0
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
0
- <meta name="copyright" content="Your Company Name" />
0
- <meta name="lang" content="en" />
0
+ <title>Sitemap Widget Plugin</title>
0
 
0
   <!-- CSS Stylesheets -->
0
   <link rel="stylesheet" href="sitemap.css" type="text/css" media="screen" title="Sitemap Stylesheet" />
0
 
0
- <!-- JavaScript -->
0
-
0
-
0
- <!-- RSS Auto Discovery -->
0
-
0
-
0
- <!-- Site Description -->
0
- <meta name="description" content="<%= @site.description %>" />
0
-
0
- <!-- Search Engine Indexing -->
0
- <meta name="robots" content="index, follow" />
0
- <meta name="googlebot" content="index, follow" />
0
 
0
 </head>
0
 
0
 <body class="">
0
 
0
 <div id="container">
0
-
0
- <div id="site_and_page_title">
0
-
0
- <!--
0
- Use this tag to populate the site and page title.
0
- This is the core h1 that should be tied to the site and page title.
0
- -->
0
- <h1 id="branding"><%= link_to "<span>Sitemap: #{(@site.name || "Rails Web Application")} </span>", root_url %></h1>
0
-
0
- <div id="site_description">
0
- <p><%= @site.description %></p>
0
- </div>
0
- </div>
0
+
0
+ <%= render :partial => "shared/nav" %>
0
   
0
   <hr />
0
   
0
@@ -52,7 +25,7 @@
0
   <hr />
0
   
0
   <div id="site_footer">
0
- <p>Copyright 2007 <%= link_to (@site.name || "Rails Web Application"), root_url %>, All Rights Reserved.</p>
0
+ <p>Created by <% link_to "Seo And Rails", "http://seoandrails.com/" %></p>
0
   </div>
0
 
0
 </div>
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<%= render :partial => "shared/nav" %>
0
+
0
 
0
 <% form_for(@settings) do |f| %>
0
 <p>
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<%= render :partial => "shared/nav" %>
0
+
0
 
0
 <h2>Non-dynamic Sitemap Links</h2>
0
 
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-<%= render :partial => "shared/nav" %>
0
+
0
 
0
 <h2>Dynamic Sitemap Widgets</h2>
0
 

Comments

    No one has commented yet.