Skip to content

Commit

Permalink
Merge pull request #1356 from EFForg/issue-1088
Browse files Browse the repository at this point in the history
Show version of Privacy Badger in dropdown
  • Loading branch information
ghostwords authored May 2, 2017
2 parents ee6d8f4 + 33a881b commit b9a1561
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
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

0 comments on commit b9a1561

Please sign in to comment.