浏览代码

Add a link to the warning for full URL limitation. See #845.

FelisCatus 8 年之前
父节点
当前提交
7333d43064

+ 3 - 0
omega-locales/ach/LC_MESSAGES/omega-web.po

@@ -157,6 +157,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/cs/LC_MESSAGES/omega-web.po

@@ -159,6 +159,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/de/LC_MESSAGES/omega-web.po

@@ -162,6 +162,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/en_US/LC_MESSAGES/omega-web.po

@@ -158,6 +158,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/es_AR/LC_MESSAGES/omega-web.po

@@ -161,6 +161,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/fa/LC_MESSAGES/omega-web.po

@@ -165,6 +165,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/fr/LC_MESSAGES/omega-web.po

@@ -159,6 +159,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/is/LC_MESSAGES/omega-web.po

@@ -113,6 +113,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr ""
 

+ 3 - 0
omega-locales/ja/LC_MESSAGES/omega-web.po

@@ -154,6 +154,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/nb_NO/LC_MESSAGES/omega-web.po

@@ -121,6 +121,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr ""
 

+ 3 - 0
omega-locales/nl/LC_MESSAGES/omega-web.po

@@ -103,6 +103,9 @@ msgstr ""
 msgid "condition_alert_fullUrlLimitation"
 msgstr ""
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr ""
 

+ 3 - 0
omega-locales/pt_BR/LC_MESSAGES/omega-web.po

@@ -158,6 +158,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/ru/LC_MESSAGES/omega-web.po

@@ -162,6 +162,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/sk/LC_MESSAGES/omega-web.po

@@ -112,6 +112,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr ""
 

+ 3 - 0
omega-locales/sl/LC_MESSAGES/omega-web.po

@@ -114,6 +114,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr ""
 

+ 3 - 0
omega-locales/tr/LC_MESSAGES/omega-web.po

@@ -161,6 +161,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation'>"
 "Learn more...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-Full-URL-Limitation"
+
 msgid "condition_group_default"
 msgstr ""
 

+ 3 - 0
omega-locales/zh_CN/LC_MESSAGES/omega-web.po

@@ -140,6 +140,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-%E5%AE%8C%E6%95%B4%E7%BD%91%E5%9D%80%E9%99%90%E5%88%B6'>"
 "更多信息...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-%E5%AE%8C%E6%95%B4%E7%BD%91%E5%9D%80%E9%99%90%E5%88%B6"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 3 - 0
omega-locales/zh_TW/LC_MESSAGES/omega-web.po

@@ -140,6 +140,9 @@ msgstr ""
 "<a href='https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-%E5%AE%8C%E6%95%B4%E7%BD%91%E5%9D%80%E9%99%90%E5%88%B6'>"
 "更多信息...</a>"
 
+msgid "condition_alert_fullUrlLimitationLink"
+msgstr "https://github.com/FelisCatus/SwitchyOmega/wiki/Chromium-%E5%AE%8C%E6%95%B4%E7%BD%91%E5%9D%80%E9%99%90%E5%88%B6"
+
 msgid "condition_group_default"
 msgstr " "
 

+ 1 - 1
omega-web/src/less/options.less

@@ -469,7 +469,7 @@ main {
     width: ~"calc(100% - 1.5em)";
   }
 
-  > .glyphicon {
+  > .icon-wrapper {
     display: block;
     float: right;
     line-height: 34px;

+ 2 - 1
omega-web/src/partials/profile_switch.jade

@@ -65,7 +65,8 @@ div(ng-controller='SwitchProfileCtrl')
             td(ng-class='{"has-icon": isUrlConditionType[rule.condition.conditionType]}')
               select.form-control(ng-model='rule.condition.conditionType'
                 ng-options='type.type as ("condition_" + type.type | tr) group by (type.group | tr) for type in conditionTypes')
-              span.glyphicon.glyphicon-alert.text-danger(ng-if='isUrlConditionType[rule.condition.conditionType]')
+              a.icon-wrapper(ng-href='{{"condition_alert_fullUrlLimitationLink" | tr}}' target='_blank' ng-if='isUrlConditionType[rule.condition.conditionType]')
+                span.glyphicon.glyphicon-alert.text-danger
             td(ng-switch='rule.condition.conditionType' ng-class='{"has-warning": conditionHasWarning(rule.condition)}')
               span(ng-switch-when='FalseCondition')
                 span(ng-show='!!rule.condition.pattern')