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

adds Twitter accounts and the hashtag (implements #1045) #1047

Merged
merged 3 commits into from Feb 24, 2020

Conversation

egonw
Copy link
Collaborator

@egonw egonw commented Feb 18, 2020

  • to pages that already showed some info
  • and details are now shown for events and event series too
  • Twitter account
  • hashtag, which points to the wmflabs hashtags-hub service

@Daniel-Mietchen
Copy link
Member

The current implementation does not indicate that the handle is for Twitter - perhaps add a Twitter logo (perhaps this t or this bird).

@egonw egonw added the needs revision label for pull requests that are sent back for revision label Feb 20, 2020
@egonw
Copy link
Collaborator Author

egonw commented Feb 20, 2020

Logo added:

image

@egonw egonw removed the needs revision label for pull requests that are sent back for revision label Feb 20, 2020
@Daniel-Mietchen
Copy link
Member

Looks good to me now, also for hashtags.


try {
var twitterAccount = item.claims.P2002[0].mainsnak.datavalue.value;
$( '#details' ).append( '<a href="https://twitter.com/' + twitterAccount + '">@' + twitterAccount + '</a> ');
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we might want a escape here, - just in case? I see that the above fullTextUrl does not have one...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Escape of what? I think the Twitter account name is meant to give valid URLs.

@fnielsen
Copy link
Collaborator

I have begone to work a bit on the code here.

@fnielsen fnielsen merged commit a718968 into WDscholia:master Feb 24, 2020
@egonw egonw linked an issue Mar 3, 2020 that may be closed by this pull request
@egonw egonw deleted the feature/Twitter branch December 16, 2020 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add Twitter handle and hashtag to base.html
3 participants