diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-01-12 06:35:03 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-01-15 05:59:29 +0300 |
commit | 5739a3f27c64b04aeeb5936ec8cdc0a0d353f72e (patch) | |
tree | 58b477fe1ae60130b6ba447effbe748c8d0461e3 /plugins | |
parent | fc0ec61b9bebbb2cace7f452429c56a079d84660 (diff) |
more consistent usage of link color and other ui elements in user/admin area
Diffstat (limited to 'plugins')
18 files changed, 72 insertions, 40 deletions
diff --git a/plugins/API/templates/listAllAPI.twig b/plugins/API/templates/listAllAPI.twig index 8bd6e1d865..4bf0c04600 100644 --- a/plugins/API/templates/listAllAPI.twig +++ b/plugins/API/templates/listAllAPI.twig @@ -15,13 +15,13 @@ <p>{{ 'API_PluginDescription'|translate }}</p> <p> - <strong>{{ 'API_MoreInformation'|translate("<a target='_blank' href='?module=Proxy&action=redirect&url=http://piwik.org/docs/analytics-api'>","</a>","<a target='_blank' href='?module=Proxy&action=redirect&url=http://piwik.org/docs/analytics-api/reference'>","</a>")|raw }}</strong> + {{ 'API_MoreInformation'|translate("<a target='_blank' href='?module=Proxy&action=redirect&url=http://piwik.org/docs/analytics-api'>","</a>","<a target='_blank' href='?module=Proxy&action=redirect&url=http://piwik.org/docs/analytics-api/reference'>","</a>")|raw }} </p> <h2>{{ 'API_UserAuthentication'|translate }}</h2> <p> - {{ 'API_UsingTokenAuth'|translate('<b>','</b>',"")|raw }}<br/> + {{ 'API_UsingTokenAuth'|translate('','',"")|raw }}<br/> <span id='token_auth'>&token_auth=<strong>{{ token_auth }}</strong></span><br/> {{ 'API_KeepTokenSecret'|translate('<b>','</b>')|raw }} {{ list_api_methods_with_links|raw }} diff --git a/plugins/CoreAdminHome/lang/en.json b/plugins/CoreAdminHome/lang/en.json index a1c0307b48..b6904ae5e6 100644 --- a/plugins/CoreAdminHome/lang/en.json +++ b/plugins/CoreAdminHome/lang/en.json @@ -63,6 +63,7 @@ "OptOutExplanationBis": "This code will display an Iframe containing a link for your visitors to opt-out of Piwik by setting an opt-out cookie in their browsers. %s Click here%s to view the content that will be displayed by the iFrame.", "OptOutForYourVisitors": "Piwik opt-out for your visitors", "PiwikIsInstalledAt": "Piwik is installed at", + "PersonalPluginSettings": "Personal Plugin Settings", "PluginDescription": "Administration area of Piwik.", "PluginSettingChangeNotAllowed": "You are not allowed to change the value of the setting \"%s\" in plugin \"%s\"", "PluginSettingReadNotAllowed": "You are not allowed to read the value of the setting \"%s\" in plugin \"%s\"", @@ -73,6 +74,7 @@ "SendPluginUpdateCommunication": "Send me an email notification when there is a new plugin update", "SendPluginUpdateCommunicationHelp": "An email will be sent to Super Users when there is a new version available for a plugin.", "StableReleases": "If Piwik is a critical part of your business, we recommend you use the latest stable release. If you use the latest beta and you find a bug or have a suggestion, please %ssee here%s.", + "SystemPluginSettings": "System Plugin Settings", "TrackAGoal": "Track a goal", "TrackingCode": "Tracking Code", "TrustedHostConfirm": "Are you sure you want to change the trusted Piwik hostname?", diff --git a/plugins/CoreAdminHome/templates/pluginSettings.twig b/plugins/CoreAdminHome/templates/pluginSettings.twig index 1d5bdfd2ad..bf9443537e 100644 --- a/plugins/CoreAdminHome/templates/pluginSettings.twig +++ b/plugins/CoreAdminHome/templates/pluginSettings.twig @@ -6,6 +6,12 @@ {% import 'macros.twig' as piwik %} {% import 'ajaxMacros.twig' as ajax %} + {% if mode == 'user' %} + <h2 piwik-enriched-headline>{{ 'CoreAdminHome_PersonalPluginSettings'|translate }}</h2> + {% else %} + <h2 piwik-enriched-headline>{{ 'CoreAdminHome_SystemPluginSettings'|translate }}</h2> + {% endif %} + <p> {{ 'CoreAdminHome_PluginSettingsIntro'|translate }} {% for pluginName, settings in pluginsSettings %} diff --git a/plugins/CoreHome/angularjs/notification/notification.directive.less b/plugins/CoreHome/angularjs/notification/notification.directive.less index bc3c5e3f5f..87630d0c33 100644 --- a/plugins/CoreHome/angularjs/notification/notification.directive.less +++ b/plugins/CoreHome/angularjs/notification/notification.directive.less @@ -1,3 +1,9 @@ +.admin .system.notification { + a { + color: #9b7a44; + } +} + .system.notification { color: #9b7a44; float: none; diff --git a/plugins/CorePluginsAdmin/Controller.php b/plugins/CorePluginsAdmin/Controller.php index 3e968e2124..c06fa6a7cc 100644 --- a/plugins/CorePluginsAdmin/Controller.php +++ b/plugins/CorePluginsAdmin/Controller.php @@ -479,7 +479,7 @@ class Controller extends Plugin\ControllerAdmin private function getPluginNamesHavingSettingsForCurrentUser() { - return array_keys(SettingsManager::getPluginSettingsForCurrentUser()); + return SettingsManager::getPluginNamesHavingSystemSettings(); } private function tryToRepairPiwik() diff --git a/plugins/CorePluginsAdmin/stylesheets/marketplace.less b/plugins/CorePluginsAdmin/stylesheets/marketplace.less index 16d949c942..9fedbce513 100644 --- a/plugins/CorePluginsAdmin/stylesheets/marketplace.less +++ b/plugins/CorePluginsAdmin/stylesheets/marketplace.less @@ -138,6 +138,9 @@ .header { margin-top: 0px; margin-bottom: 15px; + h3 { + font-size: 16px; + } } .description { @@ -145,17 +148,21 @@ } .install { float: right; + margin-top: 3px; } .update { .install } h3 .more { - color: @theme-color-text; - } - .more { font-weight: bold; text-decoration: none; - color: @theme-color-link; + &:hover { + text-decoration: underline; + } + } + .more { + text-decoration: underline; + color: @theme-color-text; } .content { margin-bottom: 46px; @@ -236,9 +243,6 @@ } .sort { - a { - color: @theme-color-link; - } .active { font-weight: bold; } diff --git a/plugins/CorePluginsAdmin/templates/pluginOverview.twig b/plugins/CorePluginsAdmin/templates/pluginOverview.twig index b6a81cd901..f49d8878ed 100644 --- a/plugins/CorePluginsAdmin/templates/pluginOverview.twig +++ b/plugins/CorePluginsAdmin/templates/pluginOverview.twig @@ -19,7 +19,7 @@ </h3> <p class="description">{{ plugin.description }} <br /> - <a href="javascript:void(0);" title="{{ 'General_MoreDetails'|translate }}" class="more">>> {{ 'General_MoreLowerCase'|translate }}</a> + <a href="javascript:void(0);" title="{{ 'General_MoreDetails'|translate }}" class="more">› {{ 'General_MoreLowerCase'|translate }}</a> </p> {% if plugin.canBeUpdated %} diff --git a/plugins/Goals/templates/_listGoalEdit.twig b/plugins/Goals/templates/_listGoalEdit.twig index 291dd5d0bd..62417aa6d8 100644 --- a/plugins/Goals/templates/_listGoalEdit.twig +++ b/plugins/Goals/templates/_listGoalEdit.twig @@ -31,13 +31,13 @@ </td> <td>{% if goal.revenue==0 %}-{% else %}{{ goal.revenue|money(idSite)|raw }}{% endif %}</td> <td> - <a href='#' name="linkEditGoal" id="{{ goal.idgoal }}" class="link_but"> + <a href='#' name="linkEditGoal" id="{{ goal.idgoal }}" class="link_but withIcon"> <img src='plugins/Morpheus/images/ico_edit.png' border="0"/> {{ 'General_Edit'|translate }} </a> </td> <td> - <a href='#' name="linkDeleteGoal" id="{{ goal.idgoal }}" class="link_but"> + <a href='#' name="linkDeleteGoal" id="{{ goal.idgoal }}" class="link_but withIcon"> <img src='plugins/Morpheus/images/ico_delete.png' border="0"/> {{ 'General_Delete'|translate }} </a> diff --git a/plugins/Installation/stylesheets/systemCheckPage.less b/plugins/Installation/stylesheets/systemCheckPage.less index 579bd888ae..3c5f6ddfa0 100755 --- a/plugins/Installation/stylesheets/systemCheckPage.less +++ b/plugins/Installation/stylesheets/systemCheckPage.less @@ -1,6 +1,5 @@ #systemCheckOptional, #systemCheckRequired { - border: 1px solid #dadada; width: 100%; max-width: 900px; } @@ -13,18 +12,13 @@ #systemCheckRequired td { padding: 1em .5em 1em 2em; vertical-align: middle; - font-size: 1.2em; margin: 0; + min-width: 200px; } -#systemCheckOptional tr:nth-child(even), -#systemCheckRequired tr:nth-child(even) { - background-color: #EFEEEC; -} - -#systemCheckOptional tr:nth-child(odd), -#systemCheckRequired tr:nth-child(odd) { - background-color: #F6F5F3; +#systemCheckOptional tr, +#systemCheckRequired tr { + background-color: #f2f2f2; } .error { diff --git a/plugins/Installation/templates/systemCheckPage.twig b/plugins/Installation/templates/systemCheckPage.twig index 1d214ba395..b66c493eea 100755 --- a/plugins/Installation/templates/systemCheckPage.twig +++ b/plugins/Installation/templates/systemCheckPage.twig @@ -3,7 +3,7 @@ {% block content %} {% if isSuperUser %} <h2 piwik-enriched-headline>{{ 'Installation_SystemCheck'|translate }}</h2> - <p style="margin-left:1em;"> + <p style="margin-left:0.2em;"> {% if infos.has_errors %} <img src="plugins/Morpheus/images/error.png"/> {{ 'Installation_SystemCheckSummaryThereWereErrors'|translate('<strong>','</strong>','<strong><em>','</em></strong>')|raw }} {{ 'Installation_SeeBelowForMoreInfo'|translate }} diff --git a/plugins/Morpheus/stylesheets/general/_admin.less b/plugins/Morpheus/stylesheets/general/_admin.less index ff4ab174b6..3d6aa21f61 100644 --- a/plugins/Morpheus/stylesheets/general/_admin.less +++ b/plugins/Morpheus/stylesheets/general/_admin.less @@ -95,21 +95,40 @@ color: @theme-color-link; } +.admin .adminTable a { + color: @theme-color-text; + text-decoration: underline; +} + +.admin .adminTable .ui-inline-help a { + color: @theme-color-link; + text-decoration: none; +} + .addRowSite, .addrow { cursor: pointer; } +.addrow:hover { + text-decoration: underline; +} + .addrow { - margin-top: 10px; + margin-top: 16px; } .addRowSite { display: inline-block; margin: 5px 0; + text-decoration: none !important; &:before { content: url(plugins/Morpheus/images/add.png) !important; } + + &:hover { + text-decoration: underline !important; + } } code { diff --git a/plugins/Morpheus/stylesheets/theme.less b/plugins/Morpheus/stylesheets/theme.less index fa2259e413..7d1ac7d2a0 100644 --- a/plugins/Morpheus/stylesheets/theme.less +++ b/plugins/Morpheus/stylesheets/theme.less @@ -418,6 +418,10 @@ table.dataTable { text-decoration: none !important; color: @theme-color-link; width: inherit; + + &.withIcon { + color: @theme-color-text; + } } div.label, diff --git a/plugins/PrivacyManager/templates/privacySettings.twig b/plugins/PrivacyManager/templates/privacySettings.twig index dc989fbf04..5fa61c683b 100644 --- a/plugins/PrivacyManager/templates/privacySettings.twig +++ b/plugins/PrivacyManager/templates/privacySettings.twig @@ -6,7 +6,7 @@ <h2 piwik-enriched-headline help-url="http://piwik.org/docs/privacy/">{{ 'PrivacyManager_TeaserHeadline'|translate }}</h2> <p>{{ 'PrivacyManager_Teaser'|translate('<a href="#anonymizeIPAnchor">',"</a>",'<a href="#deleteLogsAnchor">',"</a>",'<a href="#optOutAnchor">',"</a>")|raw }} - {{'PrivacyManager_SeeAlsoOurOfficialGuidePrivacy'|translate('<strong><a href="http://piwik.org/privacy/" rel="noreferrer" target="_blank">','</a></strong>')|raw }}</p> + {{'PrivacyManager_SeeAlsoOurOfficialGuidePrivacy'|translate('<a href="http://piwik.org/privacy/" rel="noreferrer" target="_blank">','</a>')|raw }}</p> <h2 id="anonymizeIPAnchor">{{ 'PrivacyManager_UseAnonymizeIp'|translate }}</h2> <form method="post" action="{{ {'action':'saveSettings', 'form':'formMaskLength', 'token_auth':token_auth} | urlRewriteWithParameters }}" id="formMaskLength"> <div id='anonymizeIpSettings'> diff --git a/plugins/ScheduledReports/templates/_addReport.twig b/plugins/ScheduledReports/templates/_addReport.twig index 84aa7f2f87..24ddf473a3 100644 --- a/plugins/ScheduledReports/templates/_addReport.twig +++ b/plugins/ScheduledReports/templates/_addReport.twig @@ -168,7 +168,6 @@ </tbody> </table> - <br /> <input type="hidden" id="report_idreport" value=""> <input type="submit" id="report_submit" name="submit" class="submit"/> diff --git a/plugins/ScheduledReports/templates/_listReports.twig b/plugins/ScheduledReports/templates/_listReports.twig index f59c1cf526..72b6698fcb 100644 --- a/plugins/ScheduledReports/templates/_listReports.twig +++ b/plugins/ScheduledReports/templates/_listReports.twig @@ -58,7 +58,7 @@ <br/> {% endfor %} {# send now link #} - <a href="#" idreport="{{ report.idreport }}" name="linkSendNow" class="link_but" style="margin-top:3px;"> + <a href="#" idreport="{{ report.idreport }}" name="linkSendNow" class="link_but withIcon" style="margin-top:3px;"> <img border=0 src='{{ reportTypes[report.type] }}'/> {{ 'ScheduledReports_SendReportNow'|translate }} </a> @@ -71,21 +71,21 @@ 'outputType':downloadOutputType, 'language':language, 'format': (report.format in ['html', 'csv']) ? report.format : false }) }}" - rel="noreferrer" target="_blank" name="linkDownloadReport" id="{{ report.idreport }}" class="link_but"> + rel="noreferrer" target="_blank" name="linkDownloadReport" id="{{ report.idreport }}" class="link_but withIcon"> <img src='{{ reportFormatsByReportType[report.type][report.format] }}' border="0"/> {{ 'General_Download'|translate }} </a> </td> <td> {# edit link #} - <a href='#' name="linkEditReport" id="{{ report.idreport }}" class="link_but"> + <a href='#' name="linkEditReport" id="{{ report.idreport }}" class="link_but withIcon"> <img src='plugins/Morpheus/images/ico_edit.png' border="0"/> {{ 'General_Edit'|translate }} </a> </td> <td> {# delete link #} - <a href='#' name="linkDeleteReport" id="{{ report.idreport }}" class="link_but"> + <a href='#' name="linkDeleteReport" id="{{ report.idreport }}" class="link_but withIcon"> <img src='plugins/Morpheus/images/ico_delete.png' border="0"/> {{ 'General_Delete'|translate }} </a> diff --git a/plugins/SitesManager/templates/global-settings.html b/plugins/SitesManager/templates/global-settings.html index 049d7b5386..e6ae10d949 100644 --- a/plugins/SitesManager/templates/global-settings.html +++ b/plugins/SitesManager/templates/global-settings.html @@ -182,7 +182,7 @@ </tr> </table> - <span style="margin-left:20px;"> + <span> <input type="submit" class="submit" ng-click="saveGlobalSettings()" value="{{ 'General_Save'|translate }}"/> </span> diff --git a/plugins/UsersManager/javascripts/usersManager.js b/plugins/UsersManager/javascripts/usersManager.js index b9475c29fc..0b7f4e431e 100644 --- a/plugins/UsersManager/javascripts/usersManager.js +++ b/plugins/UsersManager/javascripts/usersManager.js @@ -263,7 +263,7 @@ $(document).ready(function () { } ); - $('.user .addrow').click(function () { + $('.admin .user .addrow').click(function () { piwikHelper.hideAjaxError(); $(this).toggle(); diff --git a/plugins/Widgetize/templates/index.twig b/plugins/Widgetize/templates/index.twig index 15df75bc2a..f5cbbcb10f 100644 --- a/plugins/Widgetize/templates/index.twig +++ b/plugins/Widgetize/templates/index.twig @@ -42,22 +42,20 @@ <a href='{{ linkTo({'module':'API','action':'listAllAPI'}) }}' rel='noreferrer' target='_blank'>API page</a>) in the widget URL. </p> - <h2>Widgetize the all websites dashboard</h2> + <h2>Widgetize dashboards</h2> <p>You can also display the full Piwik dashboard in your application or website in an IFRAME (<a href='' rel='noreferrer' target='_blank' id='linkDashboardUrl'>see example</a>). The date parameter can be set to a specific calendar date, "today", or "yesterday". The period parameter can be set to "day", "week", "month", or "year". The language parameter can be set to the language code of a translation, such as language=fr. For example, for idSite=1 and date=yesterday, you can write: <span id='exportFullDashboard'></span> - </p> - - <p> - <strong>› Widgetize the all websites dashboard in an IFRAME</strong> (<a href='' rel='noreferrer' target='_blank' id='linkAllWebsitesDashboardUrl'>see example</a>) + <br /> + You can also widgetize the all websites dashboard in an IFRAME (<a href='' rel='noreferrer' target='_blank' id='linkAllWebsitesDashboardUrl'>see example</a>) <span id='exportAllWebsitesDashboard'></span> </p> - <h2>Widgetize a report</h2> - <p><strong>› Select a report, and copy paste in your page the embed code below the widget:</strong> + <h2>Widgetize reports</h2> + <p>Select a report, and copy paste in your page the embed code below the widget: <div class="top_controls"> {% include "@CoreHome/_periodSelect.twig" %} |