Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding social buttons #816

Merged
merged 6 commits into from
Aug 14, 2016
Merged

adding social buttons #816

merged 6 commits into from
Aug 14, 2016

Conversation

karlitschek
Copy link
Member

Adding social buttons to the personal and admin page as planed here: #745

@mention-bot
Copy link

@karlitschek, thanks for your PR! By analyzing the annotation information on this pull request, we identified @rullzer, @nickvergessen and @MorrisJobke to be potential reviewers

image_path('core', 'twitter.svg'),
image_path('core', 'rss.svg'),
image_path('core', 'mail.svg'),
'<a target="_blank" href="https://plus.google.com/b/104036748063781940910/104036748063781940910/about">',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add rel="noreferrer noopener" to all external links, otherwise the opening page can control the window object. See https://mathiasbynens.github.io/rel-noopener/ for more details.

So basically somebody clicks the link to Twitter and Twitter can make the tab where the link has been clicked change to any other URL without you noticing.

@LukasReschke
Copy link
Member

Works 👍

Some small nitpicks in the comments above :-)

@schiessle
Copy link
Member

looks nice 👍

@LukasReschke LukasReschke force-pushed the socialbuttons branch 2 times, most recently from d23215b to 0047059 Compare August 10, 2016 10:06
@icewind1991
Copy link
Member

svg's should be optimized for size (forgot the name of the tool @jancborchardt used)

@LukasReschke LukasReschke added the 3. to review Waiting for reviews label Aug 10, 2016
@LukasReschke LukasReschke added this to the Nextcloud 11.0 milestone Aug 10, 2016
],
$l->t('
<p class="social-button">
{googleopen}<img width="50" src="{googleimage}" title="Follow us on Google Plus!" alt="Follow us on Google Plus!">{linkclose}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👎 Any specific reason why HTML was put into the translation string? I guess we should only have text in the translated strings, e.g. Follow us on Google Plus! and then decorate the translated string with the HTML around, e.g. the image tag. Otherwise translators might be confused about this syntax and even mess it up for some languages.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example:

'<p class="social-button">
{googleopen}<img width="50" src="{googleimage}" title="' . $l->t('Follow us on Google Plus!') . '" alt="' . $l->t('Follow us on Google Plus!') . '">{linkclose}'

@MorrisJobke
Copy link
Member

svg's should be optimized for size (forgot the name of the tool @jancborchardt used)

svgo

@MorrisJobke MorrisJobke added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Aug 11, 2016
@jancborchardt
Copy link
Member

No, the tool is called scour. (svgo is too lossy). The line from core/img/image-optimization.sh can be used.

@jancborchardt
Copy link
Member

Compressed the icons and fixed some CSS.

@karlitschek what about @ChristophWurst’s comments above?

@karlitschek
Copy link
Member Author

@jancborchardt @ChristophWurst Hehe. Yes. Totally true. I just had no time to fix this yet. Feel free...

@rullzer
Copy link
Member

rullzer commented Aug 13, 2016

Fixed the translation of HTML.

@rullzer rullzer added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 13, 2016
@raghunayyar
Copy link
Member

👍

1 similar comment
@MariusBluem
Copy link
Member

👍

@MariusBluem MariusBluem merged commit 282ca05 into master Aug 14, 2016
@MariusBluem MariusBluem deleted the socialbuttons branch August 14, 2016 19:41
@MariusBluem
Copy link
Member

...we don't want this in Nextcloud 10, right?! @karlitschek

@karlitschek
Copy link
Member Author

Awesome guys. Thanks for finishing this! I think this is not critical but the risk for 10 is also low. So feel free to backport if wanted :-)

@MorrisJobke
Copy link
Member

I would drop the backport of this. Nothing crucial in my opinion.

@rullzer
Copy link
Member

rullzer commented Aug 30, 2016

Agreed

GitHubUser4234 pushed a commit to GitHubUser4234/server that referenced this pull request Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.