Merge pull request #4434 from MrZYX/links_and_branding

Links and branding
This commit is contained in:
Fabian Rodriguez 2013-08-25 12:24:57 -07:00
commit f0c6f8b4a8
15 changed files with 46 additions and 48 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -3,12 +3,11 @@
-# the COPYRIGHT file.
%header
- unless current_user
.container{:style => "position:relative;"}
= link_to content_tag(:div, nil, :class => 'diaspora_header_logo branding-header-logo'), root_path
- unless current_user
.container{style: "position:relative;"}
= link_to content_tag(:div, nil, class: 'diaspora_header_logo branding-header-logo'), root_path
%ul#landing_nav
%li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"
%li= link_to 'github', "https://github.com/diaspora/diaspora"
%li= link_to t('.blog'), 'http://blog.diasporafoundation.org/'
%li= link_to t('.login'), new_user_session_path, :class => 'login'
%ul#landing_nav
- unless current_page?(controller: :registrations, action: :new)
%li= link_to t('devise.shared.links.sign_up'), new_user_registration_path, class: 'login'
%li= link_to t('devise.shared.links.sign_in'), new_user_session_path, class: 'login'

View file

@ -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}"}/

View file

@ -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")

View file

@ -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>

View file

@ -4,7 +4,7 @@
- content_for :page_title do
%h1
DIASPORA*
diaspora*
.span12
#author_info

View file

@ -1,6 +1,5 @@
%li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"
%li= link_to 'github', "https://github.com/diaspora/diaspora"
%li= link_to t('layouts.header.blog'), "http://blog.diasporafoundation.org/"
%li= link_to 'diasporafoundation.org', "https://diasporafoundation.org"
%li= link_to 'wiki', "https://wiki.diasporafoundation.org"
%li= link_to t('layouts.application.whats_new'), changelog_url
%li= link_to(t('layouts.header.code') + " " + pod_version, "#{root_path.chomp('/')}/source.tar.gz", {:title => t('layouts.application.source_package')}) unless request.url.match(/joindiaspora.com/)
%li= link_to(t('layouts.application.toggle'), toggle_mobile_path)

View file

@ -40,9 +40,9 @@
%br
%br
%p
!= t('aspects.index.help.tutorials_wiki_and_forum', :tutorial => link_to("Diasporial" , "http://diasporial.com/tutorials", :target => '_blank'), :wiki => link_to('Wiki','http://wiki.diasporafoundation.org', :target => '_blank'), :forum => link_to("Forum", "http://www.diasporaforum.org/", :target => '_blank'))
%p
!= t('aspects.index.help.email_feedback', :link => link_to(t('aspects.index.help.email_link'), "mailto:feedback@joindiaspora.com"))
!= t('aspects.index.help.tutorials_and_wiki',
:tutorial => link_to(t('aspects.index.help.tutorial_link_text'), "https://diasporafoundation.org/getting_started", :target => '_blank'),
:wiki => link_to('Wiki','http://wiki.diasporafoundation.org', :target => '_blank'), :target => '_blank')
- unless AppConfig.configured_services.blank? || all_services_connected?
.section

View file

@ -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'

View file

@ -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:
@ -238,7 +237,8 @@ en:
tag_bug: "bug"
feature_suggestion: "... have a %{link} suggestion?"
tag_feature: "feature"
tutorials_wiki_and_forum: "%{tutorial} & %{wiki} & %{forum}: Community-powered tutorials, how-to, and news"
tutorials_and_wiki: "%{tutorial} & %{wiki}: Help for your first steps."
tutorial_link_text: "Tutorials"
email_feedback: "%{link} your feedback, if you prefer"
email_link: "Email"
any_problem: "Any Problem?"
@ -377,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"
@ -411,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}"
@ -506,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 >"
@ -525,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
@ -540,7 +540,7 @@ en:
Love,
The Diaspora* email robot!
The diaspora* email robot!
[1]: %{invite_url}
people:
@ -696,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"
@ -768,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."
@ -1026,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."

View file

@ -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