Commit 2cbafa78762a05a4324d0ae328e437c071877b4a
1 parent
576a9de4
Exists in
master
and in
39 other branches
Displaying each message's link - closes #123
Showing
5 changed files
with
46 additions
and
19 deletions
Show diff stats
src/locale/pt_BR/LC_MESSAGES/django.mo
No preview for this file type
src/locale/pt_BR/LC_MESSAGES/django.po
@@ -7,7 +7,7 @@ msgid "" | @@ -7,7 +7,7 @@ msgid "" | ||
7 | msgstr "" | 7 | msgstr "" |
8 | "Project-Id-Version: PACKAGE VERSION\n" | 8 | "Project-Id-Version: PACKAGE VERSION\n" |
9 | "Report-Msgid-Bugs-To: \n" | 9 | "Report-Msgid-Bugs-To: \n" |
10 | -"POT-Creation-Date: 2013-12-05 18:14+0000\n" | 10 | +"POT-Creation-Date: 2013-12-06 12:50+0000\n" |
11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
13 | "Language-Team: LANGUAGE <LL@li.org>\n" | 13 | "Language-Team: LANGUAGE <LL@li.org>\n" |
@@ -760,7 +760,7 @@ msgid "by" | @@ -760,7 +760,7 @@ msgid "by" | ||
760 | msgstr "por" | 760 | msgstr "por" |
761 | 761 | ||
762 | #: super_archives/templates/message-preview.html:65 | 762 | #: super_archives/templates/message-preview.html:65 |
763 | -#: super_archives/templates/message-thread.html:159 | 763 | +#: super_archives/templates/message-thread.html:161 |
764 | msgid "ago" | 764 | msgid "ago" |
765 | msgstr "atrás" | 765 | msgstr "atrás" |
766 | 766 | ||
@@ -768,49 +768,49 @@ msgstr "atrás" | @@ -768,49 +768,49 @@ msgstr "atrás" | ||
768 | msgid "You must login before voting." | 768 | msgid "You must login before voting." |
769 | msgstr "Você deve estar logado antes de votar." | 769 | msgstr "Você deve estar logado antes de votar." |
770 | 770 | ||
771 | -#: super_archives/templates/message-thread.html:130 | 771 | +#: super_archives/templates/message-thread.html:132 |
772 | msgid "Order by" | 772 | msgid "Order by" |
773 | msgstr "Ordernar por" | 773 | msgstr "Ordernar por" |
774 | 774 | ||
775 | -#: super_archives/templates/message-thread.html:134 | 775 | +#: super_archives/templates/message-thread.html:136 |
776 | msgid "Votes" | 776 | msgid "Votes" |
777 | msgstr "Votos" | 777 | msgstr "Votos" |
778 | 778 | ||
779 | -#: super_archives/templates/message-thread.html:138 | 779 | +#: super_archives/templates/message-thread.html:140 |
780 | msgid "Date" | 780 | msgid "Date" |
781 | msgstr "Data" | 781 | msgstr "Data" |
782 | 782 | ||
783 | -#: super_archives/templates/message-thread.html:143 | 783 | +#: super_archives/templates/message-thread.html:145 |
784 | msgid "Related:" | 784 | msgid "Related:" |
785 | msgstr "Relacionado:" | 785 | msgstr "Relacionado:" |
786 | 786 | ||
787 | -#: super_archives/templates/message-thread.html:154 | 787 | +#: super_archives/templates/message-thread.html:156 |
788 | msgid "Statistics:" | 788 | msgid "Statistics:" |
789 | msgstr "Estátisticas:" | 789 | msgstr "Estátisticas:" |
790 | 790 | ||
791 | -#: super_archives/templates/message-thread.html:158 | 791 | +#: super_archives/templates/message-thread.html:160 |
792 | msgid "started at" | 792 | msgid "started at" |
793 | msgstr "começou às" | 793 | msgstr "começou às" |
794 | 794 | ||
795 | -#: super_archives/templates/message-thread.html:164 | 795 | +#: super_archives/templates/message-thread.html:166 |
796 | msgid "viewed" | 796 | msgid "viewed" |
797 | msgstr "visualizado" | 797 | msgstr "visualizado" |
798 | 798 | ||
799 | -#: super_archives/templates/message-thread.html:165 | ||
800 | -#: super_archives/templates/message-thread.html:170 | ||
801 | -#: super_archives/templates/message-thread.html:175 | 799 | +#: super_archives/templates/message-thread.html:167 |
800 | +#: super_archives/templates/message-thread.html:172 | ||
801 | +#: super_archives/templates/message-thread.html:177 | ||
802 | msgid "times" | 802 | msgid "times" |
803 | msgstr "vezes" | 803 | msgstr "vezes" |
804 | 804 | ||
805 | -#: super_archives/templates/message-thread.html:169 | 805 | +#: super_archives/templates/message-thread.html:171 |
806 | msgid "answered" | 806 | msgid "answered" |
807 | msgstr "respondido" | 807 | msgstr "respondido" |
808 | 808 | ||
809 | -#: super_archives/templates/message-thread.html:174 | 809 | +#: super_archives/templates/message-thread.html:176 |
810 | msgid "voted" | 810 | msgid "voted" |
811 | msgstr "votado" | 811 | msgstr "votado" |
812 | 812 | ||
813 | -#: super_archives/templates/message-thread.html:180 | 813 | +#: super_archives/templates/message-thread.html:182 |
814 | msgid "Tags:" | 814 | msgid "Tags:" |
815 | msgstr "Etiquetas:" | 815 | msgstr "Etiquetas:" |
816 | 816 | ||
@@ -850,15 +850,20 @@ msgstr "" | @@ -850,15 +850,20 @@ msgstr "" | ||
850 | "Se você não é %(username)s ou não pediu uma verificação você pode ignorar " | 850 | "Se você não é %(username)s ou não pediu uma verificação você pode ignorar " |
851 | "esse e-mail" | 851 | "esse e-mail" |
852 | 852 | ||
853 | -#: super_archives/templates/superarchives/includes/message.html:39 | 853 | +#: super_archives/templates/superarchives/includes/message.html:16 |
854 | +#: super_archives/templates/superarchives/includes/message.html:17 | ||
855 | +msgid "Link to this message" | ||
856 | +msgstr "Link para essa mensagem" | ||
857 | + | ||
858 | +#: super_archives/templates/superarchives/includes/message.html:44 | ||
854 | msgid "Reply" | 859 | msgid "Reply" |
855 | msgstr "Responder" | 860 | msgstr "Responder" |
856 | 861 | ||
857 | -#: super_archives/templates/superarchives/includes/message.html:56 | 862 | +#: super_archives/templates/superarchives/includes/message.html:61 |
858 | msgid "Send a message" | 863 | msgid "Send a message" |
859 | msgstr "Enviar uma mensagem" | 864 | msgstr "Enviar uma mensagem" |
860 | 865 | ||
861 | -#: super_archives/templates/superarchives/includes/message.html:59 | 866 | +#: super_archives/templates/superarchives/includes/message.html:64 |
862 | msgid "" | 867 | msgid "" |
863 | "After sending a message it will take few minutes before it shows up in here. " | 868 | "After sending a message it will take few minutes before it shows up in here. " |
864 | "Why don't you grab a coffee?" | 869 | "Why don't you grab a coffee?" |
@@ -866,7 +871,7 @@ msgstr "" | @@ -866,7 +871,7 @@ msgstr "" | ||
866 | "Depois de enviar uma mensagem levará alguns minutos antes dela aparecer " | 871 | "Depois de enviar uma mensagem levará alguns minutos antes dela aparecer " |
867 | "aqui. Por que você não pega um café?" | 872 | "aqui. Por que você não pega um café?" |
868 | 873 | ||
869 | -#: super_archives/templates/superarchives/includes/message.html:62 | 874 | +#: super_archives/templates/superarchives/includes/message.html:67 |
870 | msgid "Send" | 875 | msgid "Send" |
871 | msgstr "Enviar" | 876 | msgstr "Enviar" |
872 | 877 |
src/static/css/screen.css
@@ -413,3 +413,18 @@ span.highlighted { | @@ -413,3 +413,18 @@ span.highlighted { | ||
413 | .vcard .label { | 413 | .vcard .label { |
414 | line-height: 2; | 414 | line-height: 2; |
415 | } | 415 | } |
416 | + | ||
417 | +/* Message link */ | ||
418 | + | ||
419 | +.div-message-link { | ||
420 | + display: inline !important; | ||
421 | +} | ||
422 | + | ||
423 | +.message-link { | ||
424 | + margin-left: 15px; | ||
425 | +} | ||
426 | + | ||
427 | +.email-message .popover { | ||
428 | + max-width: 350px; | ||
429 | + width: 350px; | ||
430 | +} |
src/super_archives/templates/message-thread.html
@@ -100,6 +100,8 @@ | @@ -100,6 +100,8 @@ | ||
100 | {% if user.is_active %} | 100 | {% if user.is_active %} |
101 | $('.reply.btn', this).on('click', focus_reply); | 101 | $('.reply.btn', this).on('click', focus_reply); |
102 | {% endif %} | 102 | {% endif %} |
103 | + | ||
104 | + $('.message-link').popover({'placement': 'right'}); | ||
103 | }); | 105 | }); |
104 | 106 | ||
105 | </script> | 107 | </script> |
src/super_archives/templates/superarchives/includes/message.html
@@ -13,6 +13,11 @@ | @@ -13,6 +13,11 @@ | ||
13 | {% if userprofile.get_absolute_url %} | 13 | {% if userprofile.get_absolute_url %} |
14 | </a> | 14 | </a> |
15 | {% endif %} | 15 | {% endif %} |
16 | + <div class="hidden-xs hidden-sm div-message-link" title="{% trans 'Link to this message' %}"> | ||
17 | + <button class="btn btn-default message-link" data-toggle="popover" data-content="<input type='text' value='{{ request.get_host }}{{ request.path }}#msg-{{ email.id }}' class='form-control' />" data-title="{% trans 'Link to this message' %}" data-html="true" data-container="body"> | ||
18 | + <span class="glyphicon glyphicon-link"></span> | ||
19 | + </button> | ||
20 | + </div> | ||
16 | </div> | 21 | </div> |
17 | 22 | ||
18 | {% if not reply %} | 23 | {% if not reply %} |