diff --git a/css/Symbola.ttf b/css/Symbola.ttf new file mode 100644 index 0000000..e180c0f Binary files /dev/null and b/css/Symbola.ttf differ diff --git a/css/style.css b/css/style.css index 03a83a4..c94c074 100644 --- a/css/style.css +++ b/css/style.css @@ -9,6 +9,11 @@ src: url("OpenSans-Bold.ttf"); font-weight: bold; } +@font-face +{ + font-family: "Symbola"; + src: url("Symbola.ttf"); +} html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, @@ -30,7 +35,7 @@ time, mark, audio, video, textarea font: inherit; vertical-align: baseline; box-sizing: border-box; - font-family: 'Open Sans', sans-serif; + font-family: 'Open Sans', sans-serif, Symbola; } textarea, input { @@ -644,6 +649,15 @@ textarea.splited-post { { color: #ff0000; } +.post .show-more { + font-size: 13px; + font-weight: bold; + margin-left: 60px; + color: rgba(0, 0, 0, 0.5); +} +.post .show-more:before { + content: '💭'; +} /*********************************** ********************* WHO TO FOLLOW ***********************************/ @@ -1121,6 +1135,10 @@ ol.toptrends-list { { display: inline-block; } +.post .sub-replies { + border-left: solid 3px #E34F42; + margin-left: 2px; +} /*********************************** ******** LOGIN AND NETWORK PAGES *** ***********************************/ @@ -1473,6 +1491,31 @@ ol.toptrends-list { margin-left: 0; } /************************************* +****************** CONVERSATION MODAL +**************************************/ +.conversation-modal .modal-wrapper +{ + position: absolute; + width: 560px; + height: 80%; + top: 10%; + margin: 0 0 0 -330px; + overflow: hidden; +} +.conversation-modal .modal-content +{ + overflow-y: auto; + height: 90%; +} +.conversation-modal .modal-buttons +{ + display: none; +} +.conversation-modal .postboard +{ + margin-left: 0; +} +/************************************* ****************** FOLLOWING MODAL **************************************/ .following-modal .modal-wrapper diff --git a/following.html b/following.html index ecf4c60..1c8d6f9 100644 --- a/following.html +++ b/following.html @@ -234,6 +234,7 @@ + Show more in this conversation... diff --git a/home.html b/home.html index 46ff3e9..9b14a7b 100644 --- a/home.html +++ b/home.html @@ -261,6 +261,7 @@ + Show more in this conversation... diff --git a/js/interface_common.js b/js/interface_common.js index b58914a..ae479fd 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -320,6 +320,37 @@ function openWhoToFollowModal(e) { $( "." + whoToFollowModalClass + " h3" ).text( polyglot.t("Who to Follow") ); } +function newConversationModal(postLi) { + var hashtagModalContent = $( "#hashtag-modal-template" ).children().clone(true); + hashtagModalContent.find( ".postboard-news").click(function (){ + $(this).hide(); + displayHashtagPending($(".conversation-modal .postboard-posts")); + }); + + getTopPostOfConversation(postLi, null, hashtagModalContent.find(".postboard-posts")); + + return hashtagModalContent; +} + +function openConversationModal(e) +{ + e.stopPropagation(); + e.preventDefault(); + + var $this = $( this ); + var postLi = $this.parents(".module.post.original.open").find('.module.post.original'); + + var conversationModalClass = "conversation-modal"; + openModal( conversationModalClass ); + //$( "." + threadingModalClass ).attr("data-resource","hashtag"); + + var hashtagModalContent = newConversationModal( postLi ); + hashtagModalContent.appendTo("." + conversationModalClass + " .modal-content"); + + //título do modal + $( "." + conversationModalClass + " h3" ).text( polyglot.t('conversation_title', {'username': postLi.find('.post-data').attr('data-screen-name')}) ); +} + // // Post actions, submit, count characters // -------------------------------------- @@ -1279,6 +1310,7 @@ function initInterfaceCommon() { $( ".post-area-new" ).clickoutside( unfocusThis ); $( ".post-submit").click( postSubmit ); $( ".modal-propagate").click( retweetSubmit ); + $( ".expanded-content .show-more").bind('click', openConversationModal); if ($.Options.getUnicodeConversionOpt() === "disable") $( ".undo-unicode" ).click( undoLastUnicode ).css("display", "none"); diff --git a/js/interface_localization.js b/js/interface_localization.js index c9bc68d..78299df 100644 --- a/js/interface_localization.js +++ b/js/interface_localization.js @@ -227,7 +227,9 @@ if(preferredLanguage == "en"){ "Show conversation": "Show conversation", "Mark all as read": "Mark all as read", "show_more_count": "%{count} more...", - "hide": "hide" + "hide": "hide", + "Show more in this conversation...": "Show more in this conversation...", + "conversation_title": "Conversation of @%{username}" }; } if(preferredLanguage == "es"){ @@ -1873,7 +1875,9 @@ if(preferredLanguage == "tr"){ "Show conversation": "Sohbeti göster", "Mark all as read": "hepsini okundu olarak işaretle", "show_more_count": "%{count} tane daha...", - "hide": "gizle" + "hide": "gizle", + "Show more in this conversation...": "Sohbetin tamamını göster...", + "conversation_title": "@%{username} kullanıcısının bir sohbeti" }; } diff --git a/js/mobile_abstract.js b/js/mobile_abstract.js index 2575e41..87ddffe 100644 --- a/js/mobile_abstract.js +++ b/js/mobile_abstract.js @@ -365,6 +365,29 @@ var MAL = function() } } + this.reqRepAfterCB = function(postLi, postsFromJson) { + if ($.hasOwnProperty("mobile")) { + for( var i = 0; i < postsFromJson.length; i++) { + var newStreamPost = postToElem(postsFromJson[i], "related"); + newStreamPost.hide(); + postLi.after(newStreamPost); + newStreamPost.slideDown("fast"); + } + } else { + var $replist = $('