Added help text to profile picture screen
Этот коммит содержится в:
@@ -48,6 +48,7 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
confirmButton = <a className={confirmButtonClass} onClick={this.props.submit}>Save</a>;
|
confirmButton = <a className={confirmButtonClass} onClick={this.props.submit}>Save</a>;
|
||||||
}
|
}
|
||||||
|
var helpText = 'Upload a profile picture in either JPG or PNG format, at least ' + config.ProfileWidth + 'px in width and ' + config.ProfileHeight + 'px height.'
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
return (
|
return (
|
||||||
@@ -58,6 +59,9 @@ module.exports = React.createClass({
|
|||||||
<li className='setting-list-item'>
|
<li className='setting-list-item'>
|
||||||
{img}
|
{img}
|
||||||
</li>
|
</li>
|
||||||
|
<li className='setting-list-item'>
|
||||||
|
{helpText}
|
||||||
|
</li>
|
||||||
<li className='setting-list-item'>
|
<li className='setting-list-item'>
|
||||||
{serverError}
|
{serverError}
|
||||||
{clientError}
|
{clientError}
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
config = {};
|
config = {};
|
||||||
}
|
}
|
||||||
config.SiteName = '{{ .SiteName }}';
|
config.SiteName = '{{ .SiteName }}';
|
||||||
|
config.ProfileWidth = '{{ .Props.ProfileWidth }}'
|
||||||
|
config.ProfileHeight = '{{ .Props.ProfileHeight }}'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="/static/js/bundle.js"></script>
|
<script src="/static/js/bundle.js"></script>
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ func NewHtmlTemplatePage(templateName string, title string) *HtmlTemplatePage {
|
|||||||
|
|
||||||
props := make(map[string]string)
|
props := make(map[string]string)
|
||||||
props["AnalyticsUrl"] = utils.Cfg.ServiceSettings.AnalyticsUrl
|
props["AnalyticsUrl"] = utils.Cfg.ServiceSettings.AnalyticsUrl
|
||||||
|
props["ProfileHeight"] = fmt.Sprintf("%v", utils.Cfg.ImageSettings.ProfileHeight)
|
||||||
|
props["ProfileWidth"] = fmt.Sprintf("%v", utils.Cfg.ImageSettings.ProfileWidth)
|
||||||
return &HtmlTemplatePage{TemplateName: templateName, Title: title, SiteName: utils.Cfg.ServiceSettings.SiteName, Props: props}
|
return &HtmlTemplatePage{TemplateName: templateName, Title: title, SiteName: utils.Cfg.ServiceSettings.SiteName, Props: props}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user