update branding
This commit is contained in:
parent
0d1bf85931
commit
348a7b6c5b
12 changed files with 32 additions and 33 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
def pod_name
|
def pod_name
|
||||||
AppConfig.settings.pod_name.present? ? AppConfig.settings.pod_name : "DIASPORA*"
|
AppConfig.settings.pod_name.present? ? AppConfig.settings.pod_name : "diaspora*"
|
||||||
end
|
end
|
||||||
|
|
||||||
def pod_version
|
def pod_version
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ module NotificationMailers
|
||||||
@comment = Comment.find_by_id(comment_id)
|
@comment = Comment.find_by_id(comment_id)
|
||||||
|
|
||||||
if mail?
|
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] = truncate(strip_markdown(@comment.comment_email_subject.squish), :length => TRUNCATION_LEN)
|
||||||
@headers[:subject] = "Re: #{@headers[:subject]}"
|
@headers[:subject] = "Re: #{@headers[:subject]}"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ module NotificationMailers
|
||||||
:to => name_and_address(@recipient.name, @recipient.email)
|
: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
|
headers
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ module NotificationMailers
|
||||||
def set_headers(comment_id)
|
def set_headers(comment_id)
|
||||||
@comment = Comment.find(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] = truncate(strip_markdown(@comment.comment_email_subject.squish), :length => TRUNCATION_LEN)
|
||||||
@headers[:subject] = "Re: #{@headers[:subject]}"
|
@headers[:subject] = "Re: #{@headers[:subject]}"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ module NotificationMailers
|
||||||
@conversation = @message.conversation
|
@conversation = @message.conversation
|
||||||
@participants = @conversation.participants
|
@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] = @conversation.subject.strip
|
||||||
@headers[:subject] = "Re: #{@headers[:subject]}" if @conversation.messages.size > 1
|
@headers[:subject] = "Re: #{@headers[:subject]}" if @conversation.messages.size > 1
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
%meta{:charset => 'utf-8'}/
|
%meta{:charset => 'utf-8'}/
|
||||||
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; 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{:name => "author", :content => "Diaspora, Inc."}/
|
||||||
%meta{:property => "og:site_name", :content => "#{AppConfig.settings.pod_name}"}/
|
%meta{:property => "og:site_name", :content => "#{AppConfig.settings.pod_name}"}/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
%title
|
%title
|
||||||
= pod_name
|
= pod_name
|
||||||
|
|
||||||
%meta{:name => "description", :content => "Diaspora* Mobile"}/
|
%meta{:name => "description", :content => "diaspora* mobile"}/
|
||||||
%meta{:name => "author", :content => "Diaspora, Inc."}/
|
%meta{:name => "author", :content => "Diaspora, Inc."}/
|
||||||
%meta{:charset => 'utf-8'}/
|
%meta{:charset => 'utf-8'}/
|
||||||
%meta{:property => "og:site_name", :content => "#{AppConfig.settings.pod_name}"}/
|
%meta{:property => "og:site_name", :content => "#{AppConfig.settings.pod_name}"}/
|
||||||
|
|
|
||||||
|
|
@ -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;">
|
<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>
|
<tr>
|
||||||
<td style="text-align:center;padding:30px;">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
%h1
|
%h1
|
||||||
DIASPORA*
|
diaspora*
|
||||||
|
|
||||||
.span12
|
.span12
|
||||||
#author_info
|
#author_info
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ defaults:
|
||||||
mixpanel_uid:
|
mixpanel_uid:
|
||||||
chartbeat_uid:
|
chartbeat_uid:
|
||||||
settings:
|
settings:
|
||||||
pod_name: 'Diaspora*'
|
pod_name: 'diaspora*'
|
||||||
enable_registrations: true
|
enable_registrations: true
|
||||||
autofollow_on_join: true
|
autofollow_on_join: true
|
||||||
autofollow_on_join_user: 'diasporahq@joindiaspora.com'
|
autofollow_on_join_user: 'diasporahq@joindiaspora.com'
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,6 @@ en:
|
||||||
unknown_person: "unknown person"
|
unknown_person: "unknown person"
|
||||||
video_title:
|
video_title:
|
||||||
unknown: "Unknown Video Title"
|
unknown: "Unknown Video Title"
|
||||||
diaspora_alpha: "DIASPORA* ALPHA"
|
|
||||||
aspects:
|
aspects:
|
||||||
zero: "no aspects"
|
zero: "no aspects"
|
||||||
one: "1 aspect"
|
one: "1 aspect"
|
||||||
|
|
@ -225,7 +224,7 @@ en:
|
||||||
|
|
||||||
new_here:
|
new_here:
|
||||||
title: "Welcome New Users"
|
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"
|
learn_more: "Learn more"
|
||||||
|
|
||||||
help:
|
help:
|
||||||
|
|
@ -378,13 +377,13 @@ en:
|
||||||
invite_someone_to_join: "Invite someone to join Diaspora!"
|
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."
|
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."
|
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"
|
to: "To"
|
||||||
personal_message: "Personal message"
|
personal_message: "Personal message"
|
||||||
send_an_invitation: "Send an invitation"
|
send_an_invitation: "Send an invitation"
|
||||||
sending_invitation: "Sending invitation..."
|
sending_invitation: "Sending invitation..."
|
||||||
send_invitation: "Send 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:
|
codes_left:
|
||||||
zero: "No invites left on this code"
|
zero: "No invites left on this code"
|
||||||
one: "One invite left on this code"
|
one: "One invite left on this code"
|
||||||
|
|
@ -412,7 +411,7 @@ en:
|
||||||
view_all: "View all"
|
view_all: "View all"
|
||||||
recent_notifications: "Recent notifications"
|
recent_notifications: "Recent notifications"
|
||||||
application:
|
application:
|
||||||
powered_by: "POWERED BY DIASPORA*"
|
powered_by: "POWERED BY diaspora*"
|
||||||
whats_new: "what's new?"
|
whats_new: "what's new?"
|
||||||
toggle: "toggle mobile"
|
toggle: "toggle mobile"
|
||||||
public_feed: "Public Diaspora Feed for %{name}"
|
public_feed: "Public Diaspora Feed for %{name}"
|
||||||
|
|
@ -507,13 +506,13 @@ en:
|
||||||
subject: "A message about your Diaspora account:"
|
subject: "A message about your Diaspora account:"
|
||||||
admin: "Your Diaspora administrator"
|
admin: "Your Diaspora administrator"
|
||||||
started_sharing:
|
started_sharing:
|
||||||
subject: "%{name} started sharing with you on Diaspora*"
|
subject: "%{name} started sharing with you on diaspora*"
|
||||||
sharing: "has started sharing with you!"
|
sharing: "has started sharing with you!"
|
||||||
view_profile: "View %{name}'s profile"
|
view_profile: "View %{name}'s profile"
|
||||||
comment_on_post:
|
comment_on_post:
|
||||||
reply: "Reply or view %{name}'s post >"
|
reply: "Reply or view %{name}'s post >"
|
||||||
mentioned:
|
mentioned:
|
||||||
subject: "%{name} has mentioned you on Diaspora*"
|
subject: "%{name} has mentioned you on diaspora*"
|
||||||
mentioned: "mentioned you in a post:"
|
mentioned: "mentioned you in a post:"
|
||||||
private_message:
|
private_message:
|
||||||
reply_to_or_view: "Reply to or view this conversation >"
|
reply_to_or_view: "Reply to or view this conversation >"
|
||||||
|
|
@ -526,13 +525,13 @@ en:
|
||||||
confirm_email:
|
confirm_email:
|
||||||
subject: "Please activate your new email address %{unconfirmed_email}"
|
subject: "Please activate your new email address %{unconfirmed_email}"
|
||||||
click_link: "To activate your new email address %{unconfirmed_email}, please follow this link:"
|
click_link: "To activate your new email address %{unconfirmed_email}, please follow this link:"
|
||||||
accept_invite: "Accept Your Diaspora* invite!"
|
accept_invite: "Accept Your diaspora* invite!"
|
||||||
invited_you: "%{name} invited you to Diaspora*"
|
invited_you: "%{name} invited you to diaspora*"
|
||||||
invite:
|
invite:
|
||||||
message: |-
|
message: |-
|
||||||
Hello!
|
Hello!
|
||||||
|
|
||||||
You have been invited to join Diaspora*!
|
You have been invited to join diaspora*!
|
||||||
|
|
||||||
Click this link to get started
|
Click this link to get started
|
||||||
|
|
||||||
|
|
@ -541,7 +540,7 @@ en:
|
||||||
|
|
||||||
Love,
|
Love,
|
||||||
|
|
||||||
The Diaspora* email robot!
|
The diaspora* email robot!
|
||||||
|
|
||||||
[1]: %{invite_url}
|
[1]: %{invite_url}
|
||||||
people:
|
people:
|
||||||
|
|
@ -697,7 +696,7 @@ en:
|
||||||
enter_password: "Enter a password (six character minimum)"
|
enter_password: "Enter a password (six character minimum)"
|
||||||
enter_password_again: "Enter the same password as before"
|
enter_password_again: "Enter the same password as before"
|
||||||
hey_make: "HEY,<br/>MAKE<br/>SOMETHING."
|
hey_make: "HEY,<br/>MAKE<br/>SOMETHING."
|
||||||
diaspora: "<3 Diaspora*"
|
diaspora: "<3 diaspora*"
|
||||||
sign_up: "SIGN UP"
|
sign_up: "SIGN UP"
|
||||||
email: "EMAIL"
|
email: "EMAIL"
|
||||||
username: "USERNAME"
|
username: "USERNAME"
|
||||||
|
|
@ -769,7 +768,7 @@ en:
|
||||||
failure:
|
failure:
|
||||||
error: "there was an error connecting that service"
|
error: "there was an error connecting that service"
|
||||||
inviter:
|
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"
|
click_link_to_accept_invitation: "Follow this link to accept your invitation"
|
||||||
finder:
|
finder:
|
||||||
fetching_contacts: "Diaspora is populating your %{service} friends, please check back in a few minutes."
|
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!"
|
well_hello_there: "Well, hello there!"
|
||||||
community_welcome: "Diaspora's community is happy to have you aboard!"
|
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?"
|
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."
|
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."
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ describe Notifier do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "FROM: contains the sender's name" do
|
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
|
end
|
||||||
|
|
||||||
it 'SUBJECT: has a snippet of the post contents' do
|
it 'SUBJECT: has a snippet of the post contents' do
|
||||||
|
|
@ -220,7 +220,7 @@ describe Notifier do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "FROM: contains the sender's name" do
|
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
|
end
|
||||||
|
|
||||||
it 'SUBJECT: has a snippet of the post contents, without markdown and without newlines' do
|
it 'SUBJECT: has a snippet of the post contents, without markdown and without newlines' do
|
||||||
|
|
@ -261,7 +261,7 @@ describe Notifier do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'FROM: has the name of person commenting as the sender' do
|
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
|
end
|
||||||
|
|
||||||
it 'SUBJECT: has a snippet of the post contents, without markdown and without newlines' do
|
it 'SUBJECT: has a snippet of the post contents, without markdown and without newlines' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue