Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a version number as per #1088 #1356

Merged
merged 7 commits into from
May 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/_locales/en_US/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@
},
"donate_to_eff": {
"message": "Donate to EFF"
},
"version": {
"message": "version"
}

}
3 changes: 3 additions & 0 deletions src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ function init() {
$("#deactivate_site_btn").hide();
}
});

var version = i18n.getMessage("version") + " " + chrome.runtime.getManifest().version;
$("#version").text(version);
}
$(init);

Expand Down
14 changes: 12 additions & 2 deletions src/skin/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ color: #505050;
font-size: 16px;
}
#privacyBadgerHeader h2{
margin: 10px;
margin: 5px;
padding-left: 5px;
float: left;
color: #707070;
font-size: 26px;
font-size: 24px;
font-weight: normal;
font-family: helvetica, arial, 'Lucida Grande', 'Segoe UI', Tahoma, 'DejaVu Sans', sans-serif;;
}
Expand Down Expand Up @@ -284,6 +285,7 @@ font-size: 16px;
#pbInstructions{
color: #505050;
font-size: 16px;
padding-top: 10px;
margin: 0;
}

Expand Down Expand Up @@ -378,3 +380,11 @@ font-size: 16px;
#siteControls button {
font-size: 12px;
}

#version{
float: left;
margin-top: -15px;
padding-left: 60px;
color: #707070;
font-size: 10px;
}
3 changes: 2 additions & 1 deletion src/skin/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ <h1 id="report_title" class="i18n_report_title"></h1>
<div id='privacyBadgerHeader'>
<a id="options" title="options" href='/skin/options.html' class="control-button grey-button" style="display:block" target="_blank"><img src='/icons/options.svg'></a>
<a id="help" title="help" href='/skin/firstRun.html' class="control-button grey-button" style="display:block" target="_blank"><img src='/icons/help.svg'></a>
<div id='title'><img src='/icons/badger-48.png'> <h2><span class="i18n_privacy_badger"></span></h2></div>
<div id='title'><img src='/icons/badger-48.png'> <h2><span class="i18n_privacy_badger"></span></h2></div>
<div class='clear'></div>
<div id="subtitle"><span id="version" class="i18n_version"></span></div>
</div>
<div id="blockedResourcesContainer">
<p id="pbInstructions"> <span class="i18n_pb_detected"></span> <span id='number_trackers'></span> <span class="i18n_popup_instructions"></span></p>
Expand Down