Skip to content
Extraits de code Groupes Projets
Valider 7bcea07b rédigé par goobertron's avatar goobertron Validation de Jonne Haß
Parcourir les fichiers

Standardise - code refs to 'messages' to 'conversations'

parent c12efdf5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 31 ajouts et 31 suppressions
......@@ -34,7 +34,7 @@ $(document).ready(function(){
history.pushState(null, "", conversation_path);
var conv = $(this).children('.stream_element'),
cBadge = $("#message_inbox_badge .badge_count");
cBadge = $("#conversations_badge .badge_count");
if(conv.hasClass('unread') ){
conv.removeClass('unread');
}
......
......@@ -14,7 +14,7 @@ header
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif
font-size: 13px
#message_inbox_badge, #notification_badge
#conversations_badge, #notification_badge
background: none
......
......@@ -189,7 +189,7 @@
font-size: 12px;
}
#new_message_pane {
#new_conversation_pane {
ul.as-selections { width: 100% !important; }
input#contact_ids { box-shadow: none; }
textarea { width: 98%; }
......
......@@ -95,12 +95,12 @@ body > header {
}
}
#notification_badge, #message_inbox_badge {
#notification_badge, #conversations_badge {
float: left;
padding: 0px 3px;
}
#message_inbox_badge {
#conversations_badge {
padding-top: 3px;
margin-right: 0px;
padding-right: 0px;
......
......@@ -770,7 +770,7 @@ display: inline-block;
color: #3F8FBA;
}
form#new_message.new_message input.button.creation{
form#new_conversation.new_message input.button.creation{
float: right;
margin: 0 5px 5px;
}
......
......@@ -20,7 +20,7 @@ body {
float: right;
}
#notification_badge, #message_inbox_badge {
#notification_badge, #conversations_badge {
margin: 0 10px 0 -5px;
}
......@@ -42,11 +42,11 @@ body {
margin-left: 3px;
}
#notification_badge, #message_inbox_badge {
#notification_badge, #conversations_badge {
margin: 0 10px 0 -5px;
}
#notification_badge a, #message_inbox_badge a {
#notification_badge a, #conversations_badge a {
right: 0;
}
......
......@@ -30,9 +30,9 @@
</div>
</div>
<div class="badge badge-inverse" id="message_inbox_badge">
<div class="badge badge-inverse" id="conversations_badge">
<div class="icons-mail_grey" >
<a href="/conversations" title="{{t "header.messages"}}" class="badge_link" >
<a href="/conversations" title="{{t "header.conversations"}}" class="badge_link" >
<div class="badge_count {{#unless current_user.unread_messages_count}} hidden {{/unless}}">
{{current_user.unread_messages_count}}
</div>
......
......@@ -18,7 +18,7 @@ class MessagesController < ApplicationController
Rails.logger.info("event=create type=comment user=#{current_user.diaspora_handle} status=success message=#{message.id} chars=#{params[:message][:text].length}")
Postzord::Dispatcher.build(current_user, message).post
else
flash[:error] = I18n.t('conversations.new_message.fail')
flash[:error] = I18n.t('conversations.new_conversation.fail')
end
redirect_to conversations_path(:conversation_id => conversation.id)
end
......
......@@ -7,7 +7,7 @@
= javascript_include_tag :inbox
- content_for :page_title do
= t('.message_inbox')
= t('.conversations_inbox')
.container-fluid.conversations_container
.row-fluid
......@@ -16,7 +16,7 @@
#left_pane_header
%h3
.pull-right
= link_to t('.new_message'), new_conversation_path, :class => 'btn btn-default', :rel => 'facebox'
= link_to t('.new_conversation'), new_conversation_path, :class => 'btn btn-default', :rel => 'facebox'
= t('.inbox')
#conversation_inbox
......@@ -38,4 +38,4 @@
#no_conversation_text
= t('.no_conversation_selected')
#no_conversation_controls
= link_to t('.create_a_new_message'), new_conversation_path, :rel => 'facebox'
= link_to t('.create_a_new_conversation'), new_conversation_path, :rel => 'facebox'
......@@ -3,7 +3,7 @@
-# the COPYRIGHT file.
.right
= link_to t('.new_message'), new_conversation_path, :class => 'btn'
= link_to t('.new_conversation'), new_conversation_path, :class => 'btn'
- flash.each do |name, msg|
%div{:id => "flash_#{name}", :class => "expose"}
......
......@@ -26,10 +26,10 @@
autocompleteInput.focus();
});
.span6#new_message_pane
.span6#new_conversation_pane
.span5#facebox_header
%h3
= t('conversations.index.new_message')
= t('conversations.index.new_conversation')
= form_for Conversation.new, html: {class: "new_conversation form_do_not_clear"}, remote: true do |conversation|
......
......@@ -327,10 +327,10 @@ en:
conversations:
index:
message_inbox: "Conversations Inbox"
new_message: "New Message"
conversations_inbox: "Conversations Inbox"
new_conversation: "New conversation"
no_conversation_selected: "no conversation selected"
create_a_new_message: "create a new message"
create_a_new_conversation: "start a new conversation"
no_messages: "no messages"
inbox: "Inbox"
conversation:
......@@ -354,7 +354,7 @@ en:
sent: "Message sent"
fail: "Invalid message"
no_contact: "Hey, you need to add the contact first!"
new_message:
new_conversation:
fail: "Invalid message"
destroy:
success: "Conversation successfully removed"
......
......@@ -150,7 +150,7 @@ en:
log_out: "Log out"
notifications: "Notifications"
messages: "Conversations"
conversations: "Conversations"
search: "Search"
......
@javascript
Feature: private messages
Feature: private conversations
In order to be talkative
As a User
I want to converse with people
......
@javascript
Feature: private messages mobile
Feature: private conversations mobile
In order to be talkative
As a mobile user
I want to converse with people
......
......@@ -6,7 +6,7 @@ end
Then /^I send a message with subject "([^"]*)" and text "([^"]*)" to "([^"]*)"$/ do |subject, text, person|
step %(I am on the conversations page)
step %(I follow "New Message")
step %(I follow "New conversation")
step %(I fill in "contact_autocomplete" with "#{person}" in the modal window)
step %(I press the first ".as-result-item" within ".as-results" in the modal window)
step %(I fill in "conversation_subject" with "#{subject}" in the modal window)
......@@ -23,7 +23,7 @@ end
Then /^I send a mobile message with subject "([^"]*)" and text "([^"]*)" to "([^"]*)"$/ do |subject, text, person|
step %(I am on the conversations page)
step %(I follow "New Message")
step %(I follow "New conversation")
step %(I fill in "contact_autocomplete" with "#{person}")
step %(I press the first ".as-result-item" within ".as-results")
step %(I fill in "conversation_subject" with "#{subject}")
......
......@@ -24,18 +24,18 @@ describe("app.views.Header", function() {
})
})
context("messages badge", function(){
context("conversations badge", function(){
it("displays a count when the current user has a notification", function(){
loginAs(_.extend(this.userAttrs, {unread_messages_count : 1}))
this.view.render();
expect(this.view.$("#message_inbox_badge .badge_count").hasClass('hidden')).toBe(false);
expect(this.view.$("#message_inbox_badge .badge_count").text()).toContain("1");
expect(this.view.$("#conversations_badge .badge_count").hasClass('hidden')).toBe(false);
expect(this.view.$("#conversations_badge .badge_count").text()).toContain("1");
})
it("does not display a count when the current user has a notification", function(){
loginAs(_.extend(this.userAttrs, {unread_messages_count : 0}))
this.view.render();
expect(this.view.$("#message_inbox_badge .badge_count").hasClass('hidden')).toBe(true);
expect(this.view.$("#conversations_badge .badge_count").hasClass('hidden')).toBe(true);
})
})
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter