Allow disabled reverter
This commit is contained in:
parent
cd989f973d
commit
ce950f4ab3
3 changed files with 5 additions and 2 deletions
|
@ -167,4 +167,5 @@ def the_one_and_only_page():
|
|||
return render_template('index.html', stats=stats,
|
||||
changes=q['changes'], users=q['users'], tags=q['tags'],
|
||||
versions=q['versions'], dates=q['dates'], countries=q['countries'],
|
||||
has_revert=config.OAUTH_KEY != '',
|
||||
params=params, purl=purl)
|
||||
|
|
|
@ -14,8 +14,8 @@ openstreetmap = oauth.remote_app('OpenStreetMap',
|
|||
request_token_url='https://www.openstreetmap.org/oauth/request_token',
|
||||
access_token_url='https://www.openstreetmap.org/oauth/access_token',
|
||||
authorize_url='https://www.openstreetmap.org/oauth/authorize',
|
||||
consumer_key=app.config['OAUTH_KEY'],
|
||||
consumer_secret=app.config['OAUTH_SECRET']
|
||||
consumer_key=app.config['OAUTH_KEY'] or '123',
|
||||
consumer_secret=app.config['OAUTH_SECRET'] or '123'
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -139,7 +139,9 @@
|
|||
With selected changes:
|
||||
<button onclick="btnClear()">Clear</button>
|
||||
<button onclick="btnLevel0()">Open in Level0</button>
|
||||
{% if has_revert %}
|
||||
<button onclick="btnRevert('{{ url_for('revert') }}')">Revert</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<iframe height="0" width="0" name="josmframe" style="visibility:hidden; display:none;" src="about:blank"></iframe>
|
||||
|
|
Loading…
Add table
Reference in a new issue