Commit 86d44b6a authored by Robert Knight's avatar Robert Knight

Underline links in Help panel and fix /docs/help in browser extensions

Underline links in the Help panel text to make them standout and make
the `/docs/help` URL work when the app is served from browser extensions
extension by prefixing it with the service URL.

Also remove extraneous spaces from around the 'Send us a message' text.
parent 28d0562f
...@@ -15,6 +15,7 @@ module.exports = function () { ...@@ -15,6 +15,7 @@ module.exports = function () {
this.userAgent = $window.navigator.userAgent; this.userAgent = $window.navigator.userAgent;
this.version = settings.release; this.version = settings.release;
this.dateTime = new Date(); this.dateTime = new Date();
this.serviceUrl = settings.serviceUrl;
$scope.$watchCollection( $scope.$watchCollection(
function () { function () {
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
.help-panel-content__link { .help-panel-content__link {
color: $grey-6; color: $grey-6;
text-decoration: underline;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
......
<a class="help-panel-content__link" href="mailto:support@hypothes.is?subject=Hypothesis%20support&amp;body=Version:%20{{ vm.version }}%0D%0AUser%20Agent:%20{{vm.userAgent}}%0D%0AURL:%20{{ vm.url }}%0D%0APDF%20fingerprint:%20{{ vm.documentFingerprint ? vm.documentFingerprint : '-' }}%0D%0AUsername:%20{{ vm.auth.username ? vm.auth.username : '-' }}%0D%0ADate:%20{{ vm.dateTime | date:'dd MMM yyyy HH:mm:ss Z' }} "> <a class="help-panel-content__link"
Send us a message href="mailto:support@hypothes.is?subject=Hypothesis%20support&amp;body=Version:%20{{ vm.version }}%0D%0AUser%20Agent:%20{{vm.userAgent}}%0D%0AURL:%20{{ vm.url }}%0D%0APDF%20fingerprint:%20{{ vm.documentFingerprint ? vm.documentFingerprint : '-' }}%0D%0AUsername:%20{{ vm.auth.username ? vm.auth.username : '-' }}%0D%0ADate:%20{{ vm.dateTime | date:'dd MMM yyyy HH:mm:ss Z' }} "
</a> >Send us a message</a>
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
document-fingerprint="vm.documentFingerprint" document-fingerprint="vm.documentFingerprint"
auth="vm.auth" auth="vm.auth"
date-time="vm.dateTime"> date-time="vm.dateTime">
</help-link> </help-link>
if you have any questions or want to give us feedback. if you have any questions or want to give us feedback.
You can also visit our <a class="help-panel-content__link" href="/docs/help" target="_blank"> help documents.</a> You can also visit our <a class="help-panel-content__link" href="{{vm.serviceUrl}}docs/help" target="_blank"> help documents</a>.
</div> </div>
<header class="help-panel-title"> <header class="help-panel-title">
About this version About this version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment