DOI-USGS / OWDI-Lower-Colorado-Drought-Vis

Lower Colorado Drought Visualization
Other
13 stars 12 forks source link

twitter button functionality #606

Closed mwernimont closed 8 years ago

mwernimont commented 8 years ago

@jiwalker-usgs used the twitter api to help me create a url that allows us to generate a generic tweet for people that hit the twitter button on our app. The user can edit the tweet on the twitter page, and we can change the generic tweet, hashtags, and url as we see fit.

Just thought this was easier than adding more js or another library to our app for tweet sharing.

Thoughts?

jiwalker-usgs commented 8 years ago

Cool Marty, rather than copy and pasting this a bunch of times, I think you could do a twitter.mustache that you can pull into the rendered html.

jiwalker-usgs commented 8 years ago

Also, we probably want to template in the text via the full_text.xml (so we could have a spanish tweet).

mwernimont commented 8 years ago

@jiwalker-usgs Got time to walk me through that? Not too sure how I would wrap the image in a mustache include

jiwalker-usgs commented 8 years ago

I'll swing by during our lunch break and talk through it.

mwernimont commented 8 years ago

Should fix the issue you had before @jiwalker-usgs