Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/web/app/controllers/blists_controller.rb b/web/app/controllers/blists_controller.rb
- index ee4f953..c4b0bb9 100644
- --- a/web/app/controllers/blists_controller.rb
- +++ b/web/app/controllers/blists_controller.rb
- @@ -67,18 +67,20 @@ class BlistsController < SwfController
- end
- @view.register_opening
- @view_activities = Activity.find({:viewId => @view.id})
- - end
- - if @view.description.blank?
- - @meta_description = "View this dataset"
- - updated_at = help.blist_long_date(@view.rowsUpdatedAt)
- - if updated_at
- - @meta_description += ", last updated #{updated_at}"
- + # If we're displaying a single dataset, set the title to the description.
- + if @view.description.blank?
- + @meta_description = "View this dataset"
- + updated_at = help.blist_long_date(@view.rowsUpdatedAt)
- + if updated_at
- + @meta_description += ", last updated #{updated_at}"
- + end
- + else
- + @meta_description = @view.description
- end
- - else
- - @meta_description = @view.description
- + @meta_keywords = @view.tags
- end
- - @meta_keywords = @view.tags
- +
- @data_component = params[:dataComponent]
- @popup = params[:popup]
- @@ -373,4 +375,4 @@ end
- class Helper
- include Singleton
- include ApplicationHelper
- -end
- \ No newline at end of file
- +end
- diff --git a/web/app/views/blists/show.html.erb b/web/app/views/blists/show.html.erb
- index be8f216..d357d70 100644
- --- a/web/app/views/blists/show.html.erb
- +++ b/web/app/views/blists/show.html.erb
- @@ -2,7 +2,7 @@
- <%= @view ? auto_discovery_link_tag(:rss, "/views/#{@view.id}/rows.rss?accessType=WEBSITE") : '' %>
- <%= stylesheet_link_tag 'table-core', 'table-blist-grid', "blist-grid-screen",
- :cache => "cache/blists_show_all" %>
- - <title><%= @view.name %> | <%= t(:page_title) %></title>
- + <title><%= @view ? @view.name : 'Design a Dataset' %> | <%= t(:page_title) %></title>
- <%= meta_tags :description => @meta_description, :keywords => @meta_keywords %>
- <% end %>
- diff --git a/web/static-content b/web/static-content
- index 86570c0..ec61983 160000
- --- a/web/static-content
- +++ b/web/static-content
- @@ -1 +1 @@
Add Comment
Please, Sign In to add comment