Changeset 1082


Ignore:
Timestamp:
12/17/09 00:12:09 (2 years ago)
Author:
bogdan2412
Message:

Changes from live.

  • Changed newsletter email and name.
  • Fixed task_edit crashing for empty tags.
  • Made task algorithm tags interface more pretty and xhtml valid.

Review URL: http://reviewboard.infoarena.ro/r/121/

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/db/score.php

    r1022 r1082  
    3535            ($round_id === null ? 'NULL' : "'".db_escape($round_id)."'"), 
    3636            $value); 
    37     //log_print($query); 
    3837    return db_query($query); 
    3938} 
  • trunk/scripts/send-newsletter

    r999 r1082  
    1515// Configuration section. 
    1616 
    17 define("IA_NEWSLETTER_FROM", "cristian@infoarena.ro"); 
    18 define("IA_NEWSLETTER_FROM_NAME", "Cristian George Strat"); 
     17define("IA_NEWSLETTER_FROM", "newsletter@infoarena.ro"); 
     18define("IA_NEWSLETTER_FROM_NAME", "Newsletter Infoarena"); 
    1919// how many emails to send at once (with no delay) 
    2020define("IA_BURST_LENGTH", 25); 
  • trunk/www/controllers/task.php

    r1081 r1082  
    152152                    $parent = 0; 
    153153                    if (isset($tag_parents[$type])) { 
    154                         $parent = $tags[$tag_parents[$type]][0]; 
     154                        if (count($tags[$tag_parents[$type]]) > 0) { 
     155                            $parent = $tags[$tag_parents[$type]][0]; 
     156                        } 
    155157                    } 
    156158                    $tags[$type] = tag_update('task', $new_task['id'], $type, 
  • trunk/www/static/css/screen.css

    r1080 r1082  
    15221522    padding: 0; 
    15231523} 
     1524 
     1525/* Task algorithm tags page */ 
     1526.task_tag_actions { 
     1527    margin: 0.5em; 
     1528} 
     1529ul.task_tag_actions li { 
     1530    display: inline; 
     1531} 
  • trunk/www/views/task_tags.php

    r1080 r1082  
    5656?> 
    5757 
    58 <span id="add_category"> 
     58<h1>Editare taguri algoritmi</h1> 
     59<div id="add_category" class="task_tag_actions"> 
    5960[<a href="#">Adauga categorie noua</a><?php 
    6061    echo inline_post_form(url_task_tags_add(), array("type" => "method"), "", "Adauga"); 
    6162?>] 
    62 </span> 
     63</div> 
    6364<?php 
    6465foreach ($categories as $category) { 
    6566?> 
    66     <h1><?php echo html_escape($category["name"]); ?></h1> 
    67     <span class="algorithm_tag_add">[<a class="toggle_add" href="#">Adauga tag nou</a><?php 
    68         echo inline_post_form(url_task_tags_add(), 
    69             array("type" => "algorithm", "parent" => $category["id"]), 
    70             "", "Adauga"); 
    71     ?>]</span> 
    72     <span class="delete_method">[<?php echo format_post_link(url_task_tags_delete(), "Sterge categorie", 
    73         array("type" => "method", "name" => $category["name"])); ?>]</span> 
    74     <span class="rename_method">[<a class="toggle_rename" href="#">Redenumeste categorie</a><?php 
    75         echo inline_post_form(url_task_tags_rename(), 
    76             array("type" => "method", "old_name" => $category["name"]), 
    77             $category["name"], "Redenumeste"); 
    78     ?>]</span> 
     67    <h2><?php echo html_escape($category["name"]); ?></h2> 
     68    <ul class="task_tag_actions"> 
     69        <li class="algorithm_tag_add">[<a class="toggle_add" href="#">Adauga tag nou</a><?php 
     70            echo inline_post_form(url_task_tags_add(), 
     71                array("type" => "algorithm", "parent" => $category["id"]), 
     72                "", "Adauga"); 
     73        ?>]</li> 
     74        <li class="delete_method">[<?php echo format_post_link(url_task_tags_delete(), "Sterge categorie", 
     75            array("type" => "method", "name" => $category["name"])); ?>]</li> 
     76        <li class="rename_method">[<a class="toggle_rename" href="#">Redenumeste categorie</a><?php 
     77            echo inline_post_form(url_task_tags_rename(), 
     78                array("type" => "method", "old_name" => $category["name"]), 
     79                $category["name"], "Redenumeste"); 
     80        ?>]</li> 
     81    </ul> 
    7982    <?php 
    8083    echo format_table($category["sub_tags"], $column_infos, 
     
    8689<script type="text/javascript" src="<?= html_escape(url_static('js/inline_form.js')) ?>"></script> 
    8790<script type="text/javascript"> 
     91/* <![CDATA[ */ 
    8892// Bind add method link to form 
    8993addLoadEvent(function() { 
     
    112116    bindToggleLinkToForm(renameMethodLinks[i], renameMethodForms[i]); 
    113117} 
     118/* ]]> */ 
    114119</script> 
    115120<?php 
Note: See TracChangeset for help on using the changeset viewer.