-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from tidepool-org/jebeck/update-uploader
handle outdated uploader version error
- Loading branch information
Showing
9 changed files
with
135 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* == BSD2 LICENSE == | ||
* Copyright (c) 2014, Tidepool Project | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the associated License, which is identical to the BSD 2-Clause | ||
* License as published by the Open Source Initiative at opensource.org. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the License for more details. | ||
* | ||
* You should have received a copy of the License along with this program; if | ||
* not, you can obtain one from Tidepool Project at tidepool.org. | ||
* == BSD2 LICENSE == | ||
*/ | ||
|
||
var React = require('react'); | ||
|
||
var UpdatePlease = React.createClass({ | ||
propTypes: { | ||
link: React.PropTypes.string.isRequired | ||
}, | ||
render: function() { | ||
var text = { | ||
OUT_OF_DATE: 'Your uploader is out-of-date.', | ||
TO_UPDATE: 'To update it, please follow ', | ||
LINK_TEXT: 'these instructions', | ||
TRY_AGAIN: 'Then try your upload again!' | ||
}; | ||
|
||
return ( | ||
<div className="UpdatePlease"> | ||
<p>{text.OUT_OF_DATE}</p> | ||
<p className='most-important'>{text.TO_UPDATE}<a href={this.props.link}>{text.LINK_TEXT}</a>.</p> | ||
<p>{text.TRY_AGAIN}</p> | ||
</div> | ||
); | ||
} | ||
}); | ||
|
||
module.exports = UpdatePlease; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.UpdatePlease { | ||
.center-container; | ||
|
||
a { | ||
.blue-link; | ||
} | ||
|
||
p { | ||
font-size: 1.2em; | ||
text-align: center; | ||
// our box-flex mixin wreaked havoc here and was making spans display flex | ||
// (effectively block) | ||
// TODO: fix that at the source | ||
span { | ||
display: inline; | ||
} | ||
&.most-important { | ||
font-weight: bold; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters