summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-06-27 21:50:30 -0800
committerCorey Hulen <corey@hulen.com>2015-06-27 21:50:30 -0800
commitbf8511fa479e69c0985a2ff153bde953454e1bf2 (patch)
treecb43cd72c254d3f0fba4550e5e0543d477bc2086
parentacc809ca885ec8bf06441aad70af5adfb0b31ba5 (diff)
parentf25cdbdb08c11fc9cd3e6bbf0748b67d2635ff47 (diff)
downloadchat-bf8511fa479e69c0985a2ff153bde953454e1bf2.tar.gz
chat-bf8511fa479e69c0985a2ff153bde953454e1bf2.tar.bz2
chat-bf8511fa479e69c0985a2ff153bde953454e1bf2.zip
Merge pull request #83 from ralder/fix-broken-mailto-user-popover
gui: Fix broken mailto link in user-popover
-rw-r--r--web/react/components/user_profile.jsx10
1 files changed, 4 insertions, 6 deletions
diff --git a/web/react/components/user_profile.jsx b/web/react/components/user_profile.jsx
index 8ffad737d..648960471 100644
--- a/web/react/components/user_profile.jsx
+++ b/web/react/components/user_profile.jsx
@@ -10,8 +10,7 @@ function getStateFromStores(userId) {
if (profile == null) {
return { profile: { id: "0", username: "..."} };
- }
- else {
+ } else {
return { profile: profile };
}
}
@@ -54,12 +53,11 @@ module.exports = React.createClass({
var name = this.props.overwriteName ? this.props.overwriteName : this.state.profile.username;
- var data_content = ""
- data_content += "<img style='margin: 10px' src='/api/v1/users/" + this.state.profile.id + "/image' height='128' width='128' />"
+ var data_content = "<img style='margin: 10px' src='/api/v1/users/" + this.state.profile.id + "/image' height='128' width='128' />";
if (!config.ShowEmail) {
- data_content += "<div><span style='white-space:nowrap;'>Email not shared</span></div>";
+ data_content += "<div class='text-nowrap'>Email not shared</div>";
} else {
- data_content += "<div><a href='mailto:'" + this.state.profile.email + "'' style='white-space:nowrap;text-transform:lowercase;'>" + this.state.profile.email + "</a></div>";
+ data_content += "<div><a href='mailto:" + this.state.profile.email + "' class='text-nowrap text-lowercase'>" + this.state.profile.email + "</a></div>";
}
return (