Include the current URL in the page when viewing the version diff

pull/11/head 0.21
Leigh Morresi 4 years ago
parent 7b4ed2429d
commit 25b565d9ba

@ -208,7 +208,7 @@ def diff_history_page(uuid):
#print (dates, l_file, r_file)
output = render_template("diff.html", watch_a=watch, messages=messages, left=left_file_contents,
right=right_file_contents, extra_stylesheets=extra_stylesheets, versions=dates[:-1],
current_previous_version=str(previous_version))
current_previous_version=str(previous_version), current_diff_url=watch['url'])
return output
@app.route("/favicon.ico", methods=['GET'])

@ -77,7 +77,7 @@ section.content {
white-space: nowrap;
}
.watch-table .title-col a[target="_blank"]::after {
.watch-table .title-col a[target="_blank"]::after, .current-diff-url::after {
content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
margin: 0 3px 0 5px;
}

@ -18,6 +18,9 @@
<div class="header">
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed">
<a class="pure-menu-heading" href="/"><strong>Change</strong>Detection.io</a>
{% if current_diff_url %}
<a class=current-diff-url href="{{ current_diff_url }}">{{ current_diff_url }}</a>
{% endif %}
<ul class="pure-menu-list">

Loading…
Cancel
Save