Skip to content

Commit

Permalink
Use Libraries.io in all meta titles
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Oct 20, 2016
1 parent 654fb40 commit 8a43dd6
Show file tree
Hide file tree
Showing 41 changed files with 49 additions and 49 deletions.
10 changes: 5 additions & 5 deletions app/controllers/github_repositories_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def allowed_sorts
end

def page_title
return "Search for #{params[:q]} - Libraries" if params[:q].present?
return "Search for #{params[:q]} - Libraries.io" if params[:q].present?

modifiers = []
modifiers << current_license if current_license.present?
Expand All @@ -121,13 +121,13 @@ def page_title

case params[:sort]
when 'created_at'
"New#{modifier}Github Repositories - Libraries"
"New#{modifier}Github Repositories - Libraries.io"
when 'updated_at'
"Updated#{modifier}Github Repositories - Libraries"
"Updated#{modifier}Github Repositories - Libraries.io"
when 'latest_release_published_at'
"Updated#{modifier}Github Repositories - Libraries"
"Updated#{modifier}Github Repositories - Libraries.io"
else
"Popular#{modifier}Github Repositories - Libraries"
"Popular#{modifier}Github Repositories - Libraries.io"
end
end

Expand Down
10 changes: 5 additions & 5 deletions app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def allowed_sorts
end

def page_title
return "Search for #{params[:q]} - Libraries" if params[:q].present?
return "Search for #{params[:q]} - Libraries.io" if params[:q].present?

modifiers = []
modifiers << current_licenses if current_licenses.present?
Expand All @@ -35,13 +35,13 @@ def page_title

case params[:sort]
when 'created_at'
"New#{modifier}Projects - Libraries"
"New#{modifier}Projects - Libraries.io"
when 'updated_at'
"Updated#{modifier}Projects - Libraries"
"Updated#{modifier}Projects - Libraries.io"
when 'latest_release_published_at'
"Updated#{modifier}Projects - Libraries"
"Updated#{modifier}Projects - Libraries.io"
else
"Popular#{modifier}Projects - Libraries"
"Popular#{modifier}Projects - Libraries.io"
end
end
end
2 changes: 1 addition & 1 deletion app/views/collections/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Explore - Libraries" %>
<% title "Explore - Libraries.io" %>
<% description "Find popular and trending libraries by language and keyword" %>

<h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/collections/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{params[:keyword].humanize} libraries written in #{@language} - Libraries" %>
<% title "#{params[:keyword].humanize} libraries written in #{@language} - Libraries.io" %>
<% description "Find popular and trending #{params[:keyword].humanize} libraries written in #{@language}" %>

<h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_issues/first_pull_request.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "First Pull Request - Libraries" %>
<% title "First Pull Request - Libraries.io" %>
<div class="row">
<div class="col-md-12">
<h1><i class="fa fa-code-fork"></i> First Pull Request</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_issues/help_wanted.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Help Wanted - Libraries" %>
<% title "Help Wanted - Libraries.io" %>
<div class="row">
<div class="col-md-12">
<h1><i class="fa fa-medkit"></i> Help Wanted</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_organisations/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "GitHub Organisations - Libraries" %>
<% title "GitHub Organisations - Libraries.io" %>
<% description "Explore popular GitHub Organisations on Libraries.io" %>

<div class='row'>
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_repositories/contributors.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Contributors to #{@github_repository.full_name} on GitHub - Libraries" %>
<% title "Contributors to #{@github_repository.full_name} on GitHub - Libraries.io" %>

<div class="row">
<div class='col-sm-8'>
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_repositories/forks.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Repositories forked from #{@github_repository} - Libraries" %>
<% title "Repositories forked from #{@github_repository} - Libraries.io" %>

<h1>Repositories forked from <%= link_to @github_repository.full_name, github_repository_path(@github_repository.owner_name, @github_repository.project_name) %></h1>
<hr>
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_repositories/hacker_news.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Trending GitHub Repositories - Libraries" %>
<% title "Trending GitHub Repositories - Libraries.io" %>
<h1><i class="fa fa-line-chart"></i> Trending GitHub Repositories</h1>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_repositories/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "GitHub Repositories - Libraries" %>
<% title "GitHub Repositories - Libraries.io" %>
<% description "Explore popular GitHub Repositories on Libraries.io" %>

<div class='row'>
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_repositories/languages.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Programming Languages on GitHub - Libraries" %>
<% title "Programming Languages on GitHub - Libraries.io" %>
<% description "All the programming languages that GitHub repositories have been written in." %>
<h1>
<i class="fa fa-github"></i> Programming Languages on GitHub
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_repositories/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "New GitHub Repositories - Libraries" %>
<% title "New GitHub Repositories - Libraries.io" %>
<h1><i class="fa fa-bullhorn"></i> New GitHub Repositories</h1>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_repositories/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@github_repository.full_name} on GitHub - Libraries" %>
<% title "#{@github_repository.full_name} on GitHub - Libraries.io" %>
<% description @github_repository.description %>
<%= content_for :meta, render_meta(@github_repository) %>
<% repo = @github_repository %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/github_repositories/tags.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "All #{@github_repository.full_name} tags on GitHub - Libraries" %>
<% title "All #{@github_repository.full_name} tags on GitHub - Libraries.io" %>

<h1><%= link_to @github_repository.full_name, github_repository_path(@github_repository.owner_name, @github_repository.project_name) %> tags</h1>
<hr>
Expand Down
2 changes: 1 addition & 1 deletion app/views/keywords/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Keywords - Libraries" %>
<% title "Keywords - Libraries.io" %>
<% description "All the Keywords that projects have been tagged with" %>
<h1>Keywords</h1><hr>
<div class='row'>
Expand Down
2 changes: 1 addition & 1 deletion app/views/keywords/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Projects tagged with '#{@keyword}' - Libraries" %>
<% title "Projects tagged with '#{@keyword}' - Libraries.io" %>
<% description "A detailed listing of the most popular, recently updated and most watched #{@keyword} projects online" %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(keywords: @keyword, sort: 'latest_release_published_at', order: 'desc', format: :atom), title: "Updated #{@keyword} Projects") %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(keywords: @keyword, sort: 'created_at', order: 'desc', format: :atom), title: "New #{@keyword} Projects") %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/languages/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Languages - Libraries" %>
<% title "Languages - Libraries.io" %>
<% description "All the programming languages that projects have been written in." %>
<h1>Languages</h1>
<hr>
Expand Down
2 changes: 1 addition & 1 deletion app/views/languages/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@language} - Libraries" %>
<% title "#{@language} - Libraries.io" %>
<% description "A detailed listing of the most popular, recently updated and most watched #{@language} projects online" %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(languages: @language, sort: 'latest_release_published_at', order: 'desc', format: :atom), title: "Updated #{@language} Projects") %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(languages: @language, sort: 'created_at', order: 'desc', format: :atom), title: "New #{@language} Projects") %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/licenses/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Licenses - Libraries" %>
<% title "Licenses - Libraries.io" %>
<% description "All the open source licenses that projects have been licensed with" %>
<h1>Open Source Licenses</h1><hr>
<div class='row'>
Expand Down
2 changes: 1 addition & 1 deletion app/views/licenses/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@license.name} license - Libraries" %>
<% title "#{@license.name} license - Libraries.io" %>
<% description "A detailed listing of the most popular, recently updated and most watched #{@license.name} licensed projects online" %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(licenses: @license.id, sort: 'latest_release_published_at', order: 'desc', format: :atom), title: "Updated #{@license.id} Projects") %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(licenses: @license.id, sort: 'created_at', order: 'desc', format: :atom), title: "New #{@license.id} Projects") %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/platforms/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Platforms - Libraries" %>
<% title "Platforms - Libraries.io" %>
<% description "All the open source platforms that projects have been published to" %>
<h1>Platforms</h1><hr>
<div class='row'>
Expand Down
2 changes: 1 addition & 1 deletion app/views/platforms/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{platform_name(@platform_name)} - Libraries" %>
<% title "#{platform_name(@platform_name)} - Libraries.io" %>
<% description "A detailed listing of the most popular, recently updated and most watched #{platform_name(@platform_name)} projects online" %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(platforms: @platform_name, sort: 'latest_release_published_at', order: 'desc', format: :atom), title: "Updated #{platform_name(@platform_name)} Projects") %>
<% content_for :atom, auto_discovery_link_tag(:atom, search_url(platforms: @platform_name, sort: 'created_at', order: 'desc', format: :atom), title: "New #{platform_name(@platform_name)} Projects") %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/bus_factor.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Improve the Bus Factor - Libraries" %>
<% title "Improve the Bus Factor - Libraries.io" %>
<div class="row">
<h1><i class="fa fa-bus"></i> Improve the Bus Factor</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/dependent_repos.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Repositories that depend on #{@project} on #{@project.platform_name} - Libraries" %>
<% title "Repositories that depend on #{@project} on #{@project.platform_name} - Libraries.io" %>

<h1>
<div class="pictogram pictogram-<%= @project.platform.downcase %>"></div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/dependents.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Projects that depend on #{@project} on #{@project.platform_name} - Libraries" %>
<% title "Projects that depend on #{@project} on #{@project.platform_name} - Libraries.io" %>

<h1>
<div class="pictogram pictogram-<%= @project.platform.downcase %>"></div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/deprecated.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@platform_name} Deprecated Libraries - Libraries" %>
<% title "#{@platform_name} Deprecated Libraries - Libraries.io" %>
<% description "Projects marked as deprecated which are no longer maintained or suitable for use" %>
<div class="row">
<h1><i class="fa fa-clock-o"></i> <%= @platform_name %> Deprecated Libraries</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/removed.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@platform_name} Removed Libraries - Libraries" %>
<% title "#{@platform_name} Removed Libraries - Libraries.io" %>
<% description "Projects marked as removed which are no longer available for download" %>
<div class="row">
<h1><i class="fa fa-ban"></i> <%= @platform_name %> Removed Libraries</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@project} #{@version} on #{@project.platform_name} - Libraries" %>
<% title "#{@project} #{@version} on #{@project.platform_name} - Libraries.io" %>
<% description project_description(@project, @version) %>
<% content_for :atom, auto_discovery_link_tag(:atom, rss_url(@project)) %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/sourcerank.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "SourceRank Breakdown for #{@project} on #{@project.platform_name} - Libraries" %>
<% title "SourceRank Breakdown for #{@project} on #{@project.platform_name} - Libraries.io" %>

<div class="row">
<div class="col-md-12">
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/tags.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "All #{@project} tagged releases on #{@project.platform_name} - Libraries" %>
<% title "All #{@project} tagged releases on #{@project.platform_name} - Libraries.io" %>
<% content_for :atom, auto_discovery_link_tag(:atom, project_tags_url({format: "atom"}.merge(@project.to_param))) %>

<h1><%= link_to @project, project_path(@project.to_param) %> tagged releases</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/trending.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Trending GitHub Repositories - Libraries" %>
<% title "Trending GitHub Repositories - Libraries.io" %>
<h1><i class="fa fa-line-chart"></i> Trending Libraries</h1>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/unlicensed.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@platform_name} Libraries without licenses - Libraries" %>
<% title "#{@platform_name} Libraries without licenses - Libraries.io" %>
<% description "Help the community by encouraging the authors to add a LICENSE file to their #{@platform_name} libraries." %>
<div class="row">
<h1><i class="fa fa-copyright"></i> <%= @platform_name %> Libraries without licenses</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/unmaintained.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@platform_name} Unmaintained Libraries - Libraries" %>
<% title "#{@platform_name} Unmaintained Libraries - Libraries.io" %>
<% description "Projects marked as unmaintained which are no longer updated" %>
<div class="row">
<h1><i class="fa fa-archive"></i> <%= @platform_name %> Unmaintained Libraries</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/versions.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@project} published releases on #{@project.platform_name} - Libraries" %>
<% title "#{@project} published releases on #{@project.platform_name} - Libraries.io" %>
<% content_for :atom, auto_discovery_link_tag(:atom, project_versions_url({format: "atom"}.merge(@project.to_param))) %>

<h1>
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/your_dependent_repos.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Your repositories that depend on #{@project} on #{@project.platform_name} - Libraries" %>
<% title "Your repositories that depend on #{@project} on #{@project.platform_name} - Libraries.io" %>

<h1>Your repositories that depend on <%= link_to @project, project_path(@project.to_param) %></h1>
<hr>
Expand Down
2 changes: 1 addition & 1 deletion app/views/tree/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@kind if @kind != 'normal'} Dependency Tree for #{@project} #{@version} on #{@project.platform_name} - Libraries" %>
<% title "#{@kind if @kind != 'normal'} Dependency Tree for #{@project} #{@version} on #{@project.platform_name} - Libraries.io" %>
<h1>
<%= fa_icon 'code-fork' %>
<%= @kind if @kind != 'normal' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/contributions.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@user}'s Open Source Contributions - Libraries" %>
<% title "#{@user}'s Open Source Contributions - Libraries.io" %>

<h1>
<%= image_tag @user.avatar_url(120), width: 60, height: 60, alt: @user %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/projects.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "Projects referencing #{@user}'s GitHub Repositories - Libraries" %>
<% title "Projects referencing #{@user}'s GitHub Repositories - Libraries.io" %>

<h1>
<%= image_tag @user.avatar_url(120), width: 60, height: 60, alt: @user %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/repositories.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{@user}'s Repositories - Libraries" %>
<% title "#{@user}'s Repositories - Libraries.io" %>

<h1>
<%= image_tag @user.avatar_url(120), width: 60, height: 60, alt: @user %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% title "#{github_user_title(@user)} on GitHub - Libraries" %>
<% title "#{github_user_title(@user)} on GitHub - Libraries.io" %>
<% description "GitHub repositories created and contributed to by #{github_user_title(@user)}" %>
<%= content_for :meta, render_meta(@user) %>
<% cache([@user, 'users:show', 'v3'], :expires_in => 1.week) do %>
Expand Down

0 comments on commit 8a43dd6

Please sign in to comment.