Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r11860: LJSUP-12012: Bookmark "Manage domains" i...

Committer: esavintcev
LJSUP-12012: Bookmark "Manage domains" is displayed always
U   trunk/htdocs/stc/shop/shop.css
U   trunk/templates/Shop/DomainRU.tmpl
Modified: trunk/htdocs/stc/shop/shop.css
===================================================================
--- trunk/htdocs/stc/shop/shop.css	2012-04-28 09:02:39 UTC (rev 11859)
+++ trunk/htdocs/stc/shop/shop.css	2012-04-28 14:34:46 UTC (rev 11860)
@@ -2275,3 +2275,6 @@
 			background: url(/img/popup-cls.png?v=1) no-repeat 0 0;
 			font: 0/0 serif;
 			}
+	.b-domainru-nodomains {
+		display: none;
+		}

Modified: trunk/templates/Shop/DomainRU.tmpl
===================================================================
--- trunk/templates/Shop/DomainRU.tmpl	2012-04-28 09:02:39 UTC (rev 11859)
+++ trunk/templates/Shop/DomainRU.tmpl	2012-04-28 14:34:46 UTC (rev 11860)
@@ -31,7 +31,7 @@
                 <TMPL_VAR expr="ml('shop.view.domainru.buydomain')">
             </a>
         </li>
-        <li class="m-buy-types-item<TMPL_IF EXPR="type ne 'buy'"> current</TMPL_IF>">
+        <li class="m-buy-types-item<TMPL_IF EXPR="type ne 'buy'"> current</TMPL_IF><TMPL_UNLESS domains> b-domainru-nodomains</TMPL_UNLESS>">
             <a href="<TMPL_VAR self_uri>?type=manage">
                 <TMPL_VAR expr="ml('shop.view.domainru.managedomains')">
             </a>
@@ -76,31 +76,27 @@
         </li>
         <li class="b-buy-goods-item<TMPL_IF EXPR="type ne 'buy'"> current</TMPL_IF>">
             <div class="b-buy-intro">
-                <TMPL_IF domains>
-                    <table class="b-domainru-domains">
-                        <TMPL_LOOP domains>
-                            <tr>
-                                <td class="b-domainru-domains-user">
-                                    <TMPL_VAR auth_display>
-                                </td>
-                                <td class="b-domainru-domains-domain">
-                                    <a href="http://<TMPL_VAR dom><TMPL_VAR expr="ml('shop.view.domainru.url')">" target="_blank"><TMPL_VAR dom><TMPL_VAR expr="ml('shop.view.domainru.url')"></a>
-                                </td>
-                                <td class="b-domainru-domains-remove">
-                                    <a href="?type=manage&amp;delete=1&amp;auth=<TMPL_VAR auth>&amp;dom=<TMPL_VAR dom>" 
-                                       title="<TMPL_VAR expr="ml('shop.view.domainru.remove')">"
-                                       class="b-domainru-remove"
-                                       data-domain="<TMPL_VAR dom>"
-                                       data-user="<TMPL_VAR auth>">
-                                        <i class="b-domainru-remove-icon"></i><TMPL_VAR expr="ml('shop.view.domainru.remove')">
-                                    </a>
-                                </td>
-                            </tr>
-                        </TMPL_LOOP>
-                    </table>
-                <TMPL_ELSE>
-                    <p class="b-bubble b-bubble-noarrow b-bubble-intext b-bubble-alert"><TMPL_VAR expr="ml('shop.view.domainru.nodomains')"></p>
-                </TMPL_IF>
+                <table class="b-domainru-domains">
+                    <TMPL_LOOP domains>
+                        <tr>
+                            <td class="b-domainru-domains-user">
+                                <TMPL_VAR auth_display>
+                            </td>
+                            <td class="b-domainru-domains-domain">
+                                <a href="http://<TMPL_VAR dom><TMPL_VAR expr="ml('shop.view.domainru.url')">" target="_blank"><TMPL_VAR dom><TMPL_VAR expr="ml('shop.view.domainru.url')"></a>
+                            </td>
+                            <td class="b-domainru-domains-remove">
+                                <a href="?type=manage&amp;delete=1&amp;auth=<TMPL_VAR auth>&amp;dom=<TMPL_VAR dom>" 
+                                   title="<TMPL_VAR expr="ml('shop.view.domainru.remove')">"
+                                   class="b-domainru-remove"
+                                   data-domain="<TMPL_VAR dom>"
+                                   data-user="<TMPL_VAR auth>">
+                                    <i class="b-domainru-remove-icon"></i><TMPL_VAR expr="ml('shop.view.domainru.remove')">
+                                </a>
+                            </td>
+                        </tr>
+                    </TMPL_LOOP>
+                </table>
             </div>
         </li>
     </ul>

Tags: css, esavintcev, ljcom, savintsev_egor, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments