Esempio n. 1
0
 /**
  * @param Mage_Rule_Model_Rule $rule
  * @return string
  */
 public function formatRuleName($rule)
 {
     $linkStyle = '';
     $name = $rule->getName();
     if (!$rule->getIsActive() || $rule->getToDate() < date('Y-m-d') && $rule->getToDate() !== null) {
         $linkStyle = 'text-decoration: none;';
         $name = '<span style="text-decoration:line-through; color: #aaa;">' . $name . '</span>';
     }
     return sprintf('<a href="%s" style="%s" title="%s">%s</a>', $this->getUrl('*/promo_quote/edit', array('id' => $rule->getId())), $linkStyle, 'ID: ' . $rule->getId(), $name);
 }