From 348a7b6c5b29839ff013f06966593d4b1a34c748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= <me@mrzyx.de> Date: Sat, 24 Aug 2013 17:52:01 +0200 Subject: [PATCH] update branding --- app/helpers/application_helper.rb | 2 +- .../notification_mailers/also_commented.rb | 2 +- app/mailers/notification_mailers/base.rb | 4 +-- .../notification_mailers/comment_on_post.rb | 2 +- .../notification_mailers/private_message.rb | 2 +- app/views/layouts/application.html.haml | 4 +-- app/views/layouts/application.mobile.haml | 10 +++---- app/views/layouts/notifier.html.erb | 2 +- app/views/people/show.mobile.haml | 2 +- config/defaults.yml | 2 +- config/locales/diaspora/en.yml | 27 +++++++++---------- spec/mailers/notifier_spec.rb | 6 ++--- 12 files changed, 32 insertions(+), 33 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 344fbbb6b2..1535f7b89b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -4,7 +4,7 @@ module ApplicationHelper def pod_name - AppConfig.settings.pod_name.present? ? AppConfig.settings.pod_name : "DIASPORA*" + AppConfig.settings.pod_name.present? ? AppConfig.settings.pod_name : "diaspora*" end def pod_version diff --git a/app/mailers/notification_mailers/also_commented.rb b/app/mailers/notification_mailers/also_commented.rb index cb42fc4dfc..c0957e5aa8 100644 --- a/app/mailers/notification_mailers/also_commented.rb +++ b/app/mailers/notification_mailers/also_commented.rb @@ -10,7 +10,7 @@ module NotificationMailers @comment = Comment.find_by_id(comment_id) if mail? - @headers[:from] = "\"#{@comment.author_name} (Diaspora*)\" <#{AppConfig.mail.sender_address}>" + @headers[:from] = "\"#{@comment.author_name} (diaspora*)\" <#{AppConfig.mail.sender_address}>" @headers[:subject] = truncate(strip_markdown(@comment.comment_email_subject.squish), :length => TRUNCATION_LEN) @headers[:subject] = "Re: #{@headers[:subject]}" end diff --git a/app/mailers/notification_mailers/base.rb b/app/mailers/notification_mailers/base.rb index 980f70e51c..06d21ad5dd 100644 --- a/app/mailers/notification_mailers/base.rb +++ b/app/mailers/notification_mailers/base.rb @@ -3,7 +3,7 @@ module NotificationMailers class Base attr_accessor :recipient, :sender - + delegate :unconfirmed_email, :confirm_email_token, :first_name, to: :recipient, prefix: true delegate :first_name, :name, :sender, to: :sender, prefix: true @@ -38,7 +38,7 @@ module NotificationMailers :to => name_and_address(@recipient.name, @recipient.email) } - headers[:from] = "\"#{@sender.name} (Diaspora*)\" <#{AppConfig.mail.sender_address}>" if @sender.present? + headers[:from] = "\"#{@sender.name} (diaspora*)\" <#{AppConfig.mail.sender_address}>" if @sender.present? headers end diff --git a/app/mailers/notification_mailers/comment_on_post.rb b/app/mailers/notification_mailers/comment_on_post.rb index 4eb5faec25..18faa2df79 100644 --- a/app/mailers/notification_mailers/comment_on_post.rb +++ b/app/mailers/notification_mailers/comment_on_post.rb @@ -8,7 +8,7 @@ module NotificationMailers def set_headers(comment_id) @comment = Comment.find(comment_id) - @headers[:from] = "\"#{@comment.author_name} (Diaspora*)\" <#{AppConfig.mail.sender_address}>" + @headers[:from] = "\"#{@comment.author_name} (diaspora*)\" <#{AppConfig.mail.sender_address}>" @headers[:subject] = truncate(strip_markdown(@comment.comment_email_subject.squish), :length => TRUNCATION_LEN) @headers[:subject] = "Re: #{@headers[:subject]}" end diff --git a/app/mailers/notification_mailers/private_message.rb b/app/mailers/notification_mailers/private_message.rb index e39632b7db..6698ba6472 100644 --- a/app/mailers/notification_mailers/private_message.rb +++ b/app/mailers/notification_mailers/private_message.rb @@ -7,7 +7,7 @@ module NotificationMailers @conversation = @message.conversation @participants = @conversation.participants - @headers[:from] = "\"#{@message.author_name} (Diaspora*)\" <#{AppConfig.mail.sender_address}>" + @headers[:from] = "\"#{@message.author_name} (diaspora*)\" <#{AppConfig.mail.sender_address}>" @headers[:subject] = @conversation.subject.strip @headers[:subject] = "Re: #{@headers[:subject]}" if @conversation.messages.size > 1 end diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 94f8cd314d..cc4f5d82e8 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -7,10 +7,10 @@ %head %title = page_title yield(:page_title) - + %meta{:charset => 'utf-8'}/ %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/ - %meta{:name => "description", :content => "Diaspora*"}/ + %meta{:name => "description", :content => "diaspora*"}/ %meta{:name => "author", :content => "Diaspora, Inc."}/ %meta{:property => "og:site_name", :content => "#{AppConfig.settings.pod_name}"}/ diff --git a/app/views/layouts/application.mobile.haml b/app/views/layouts/application.mobile.haml index a478d70581..87ba79c989 100644 --- a/app/views/layouts/application.mobile.haml +++ b/app/views/layouts/application.mobile.haml @@ -8,18 +8,18 @@ %title = pod_name - %meta{:name => "description", :content => "Diaspora* Mobile"}/ + %meta{:name => "description", :content => "diaspora* mobile"}/ %meta{:name => "author", :content => "Diaspora, Inc."}/ %meta{:charset => 'utf-8'}/ %meta{:property => "og:site_name", :content => "#{AppConfig.settings.pod_name}"}/ - + / Viewport scale %meta{:name =>'viewport', :content => "width=device-width, minimum-scale=1 maximum-scale=1"}/ %meta{:name => "HandheldFriendly", :content => "True"}/ %meta{:name => "MobileOptimized", :content => "320"}/ / Force cleartype on WP7 - %meta{'http-equiv' => "cleartype", :content => 'on'}/ - + %meta{'http-equiv' => "cleartype", :content => 'on'}/ + / Home screen icon (sized for retina displays) %link{:rel => 'apple-touch-icon', :href => '/apple-touch-icon.png'} / For Nokia devices @@ -50,7 +50,7 @@ .navbar-inner .container{:style => "position: relative;"} = link_to(image_tag('branding/header-logo2x.png', :height => 40, :width => 40, :id => 'header_title'), stream_path) - + - if user_signed_in? #nav_badges = link_to(image_tag('icons/my_activity.png', :class => 'my_activity'), activity_stream_path, :class => "badge badge-inverse", :id => "my_activity_badge") diff --git a/app/views/layouts/notifier.html.erb b/app/views/layouts/notifier.html.erb index ddc0a59f69..cabab16b69 100644 --- a/app/views/layouts/notifier.html.erb +++ b/app/views/layouts/notifier.html.erb @@ -28,7 +28,7 @@ <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:14px;color:#333;"> <tr> <td style="text-align:center;padding:30px;"> - <img src="<%=AppConfig.pod_uri.to_s %>assets/branding/logo_caps.png" alt="DIASPORA*" width="95px" height="14px"/> + <img src="<%=AppConfig.pod_uri.to_s %>assets/branding/logo_caps.png" alt="diaspora*" width="95px" height="14px"/> </td> </tr> </table> diff --git a/app/views/people/show.mobile.haml b/app/views/people/show.mobile.haml index afdaafe2b0..381578ded8 100644 --- a/app/views/people/show.mobile.haml +++ b/app/views/people/show.mobile.haml @@ -4,7 +4,7 @@ - content_for :page_title do %h1 - DIASPORA* + diaspora* .span12 #author_info diff --git a/config/defaults.yml b/config/defaults.yml index 1717e53fce..9c404c99cd 100644 --- a/config/defaults.yml +++ b/config/defaults.yml @@ -51,7 +51,7 @@ defaults: mixpanel_uid: chartbeat_uid: settings: - pod_name: 'Diaspora*' + pod_name: 'diaspora*' enable_registrations: true autofollow_on_join: true autofollow_on_join_user: 'diasporahq@joindiaspora.com' diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index aaa456864f..857c597095 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -139,7 +139,6 @@ en: unknown_person: "unknown person" video_title: unknown: "Unknown Video Title" - diaspora_alpha: "DIASPORA* ALPHA" aspects: zero: "no aspects" one: "1 aspect" @@ -225,7 +224,7 @@ en: new_here: title: "Welcome New Users" - follow: "Follow %{link} and welcome new users to Diaspora*!" + follow: "Follow %{link} and welcome new users to diaspora*!" learn_more: "Learn more" help: @@ -378,13 +377,13 @@ en: invite_someone_to_join: "Invite someone to join Diaspora!" if_they_accept_info: "if they accept, they will be added to the aspect you invited them." comma_separated_plz: "You can enter multiple email addresses separated by commas." - check_out_diaspora: "Hey! You should check out Diaspora*" + check_out_diaspora: "Hey! You should check out diaspora*" to: "To" personal_message: "Personal message" send_an_invitation: "Send an invitation" sending_invitation: "Sending invitation..." send_invitation: "Send invitation" - paste_link: "Share this link with your friends to invite them to Diaspora*, or email them the link directly." + paste_link: "Share this link with your friends to invite them to diaspora*, or email them the link directly." codes_left: zero: "No invites left on this code" one: "One invite left on this code" @@ -412,7 +411,7 @@ en: view_all: "View all" recent_notifications: "Recent notifications" application: - powered_by: "POWERED BY DIASPORA*" + powered_by: "POWERED BY diaspora*" whats_new: "what's new?" toggle: "toggle mobile" public_feed: "Public Diaspora Feed for %{name}" @@ -507,13 +506,13 @@ en: subject: "A message about your Diaspora account:" admin: "Your Diaspora administrator" started_sharing: - subject: "%{name} started sharing with you on Diaspora*" + subject: "%{name} started sharing with you on diaspora*" sharing: "has started sharing with you!" view_profile: "View %{name}'s profile" comment_on_post: reply: "Reply or view %{name}'s post >" mentioned: - subject: "%{name} has mentioned you on Diaspora*" + subject: "%{name} has mentioned you on diaspora*" mentioned: "mentioned you in a post:" private_message: reply_to_or_view: "Reply to or view this conversation >" @@ -526,13 +525,13 @@ en: confirm_email: subject: "Please activate your new email address %{unconfirmed_email}" click_link: "To activate your new email address %{unconfirmed_email}, please follow this link:" - accept_invite: "Accept Your Diaspora* invite!" - invited_you: "%{name} invited you to Diaspora*" + accept_invite: "Accept Your diaspora* invite!" + invited_you: "%{name} invited you to diaspora*" invite: message: |- Hello! - You have been invited to join Diaspora*! + You have been invited to join diaspora*! Click this link to get started @@ -541,7 +540,7 @@ en: Love, - The Diaspora* email robot! + The diaspora* email robot! [1]: %{invite_url} people: @@ -697,7 +696,7 @@ en: enter_password: "Enter a password (six character minimum)" enter_password_again: "Enter the same password as before" hey_make: "HEY,<br/>MAKE<br/>SOMETHING." - diaspora: "<3 Diaspora*" + diaspora: "<3 diaspora*" sign_up: "SIGN UP" email: "EMAIL" username: "USERNAME" @@ -769,7 +768,7 @@ en: failure: error: "there was an error connecting that service" inviter: - join_me_on_diaspora: "Join me on DIASPORA*" + join_me_on_diaspora: "Join me on diaspora*" click_link_to_accept_invitation: "Follow this link to accept your invitation" finder: fetching_contacts: "Diaspora is populating your %{service} friends, please check back in a few minutes." @@ -1027,7 +1026,7 @@ en: well_hello_there: "Well, hello there!" community_welcome: "Diaspora's community is happy to have you aboard!" - awesome_take_me_to_diaspora: "Awesome! Take me to Diaspora*" + awesome_take_me_to_diaspora: "Awesome! Take me to diaspora*" who_are_you: "Who are you?" connect_to_facebook: "We can speed things up a bit by %{link} to Diaspora. This will pull your name and photo, and enable cross-posting." diff --git a/spec/mailers/notifier_spec.rb b/spec/mailers/notifier_spec.rb index 187d865e2d..47b52139e1 100644 --- a/spec/mailers/notifier_spec.rb +++ b/spec/mailers/notifier_spec.rb @@ -185,7 +185,7 @@ describe Notifier do end it "FROM: contains the sender's name" do - @mail["From"].to_s.should == "\"#{@cnv.author.name} (Diaspora*)\" <#{AppConfig.mail.sender_address}>" + @mail["From"].to_s.should == "\"#{@cnv.author.name} (diaspora*)\" <#{AppConfig.mail.sender_address}>" end it 'SUBJECT: has a snippet of the post contents' do @@ -220,7 +220,7 @@ describe Notifier do end it "FROM: contains the sender's name" do - comment_mail["From"].to_s.should == "\"#{eve.name} (Diaspora*)\" <#{AppConfig.mail.sender_address}>" + comment_mail["From"].to_s.should == "\"#{eve.name} (diaspora*)\" <#{AppConfig.mail.sender_address}>" end it 'SUBJECT: has a snippet of the post contents, without markdown and without newlines' do @@ -261,7 +261,7 @@ describe Notifier do end it 'FROM: has the name of person commenting as the sender' do - comment_mail["From"].to_s.should == "\"#{eve.name} (Diaspora*)\" <#{AppConfig.mail.sender_address}>" + comment_mail["From"].to_s.should == "\"#{eve.name} (diaspora*)\" <#{AppConfig.mail.sender_address}>" end it 'SUBJECT: has a snippet of the post contents, without markdown and without newlines' do -- GitLab