Commit cd16bd10 authored by Roque's avatar Roque

erp5_web_project_ui: some links dropped

parent 71b862ff
...@@ -19,19 +19,11 @@ ...@@ -19,19 +19,11 @@
<a id="document_link" class="first-line-buttons ui-disabled" data-i18n="[value]Documents" disabled >Documents</a> <a id="document_link" class="first-line-buttons ui-disabled" data-i18n="[value]Documents" disabled >Documents</a>
</p> </p>
</div> </div>
<div class="ui-field-contain project_links">
<p>
<a id="bug_link" class="first-line-buttons ui-disabled" data-i18n="[value]Bugs" disabled >Opened Bugs</a>
<a id="closed_bug_link" class="first-line-buttons ui-disabled" data-i18n="[value]Closed Bugs" disabled >Closed Bugs</a>
</p>
</div>
<div class="ui-field-contain project_links"> <div class="ui-field-contain project_links">
<p> <p>
<a id="task_link" class="first-line-buttons ui-disabled" data-i18n="[value]Confirmed Tasks" disabled >Confirmed Tasks</a> <a id="task_link" class="first-line-buttons ui-disabled" data-i18n="[value]Confirmed Tasks" disabled >Confirmed Tasks</a>
<a id="not_confirmed_task_link" class="first-line-buttons ui-disabled" data-i18n="[value]Not Confirmed Tasks" disabled >Not Confirmed Tasks</a>
<a id="report_link" class="first-line-buttons ui-disabled" data-i18n="[value]Task Reports" disabled >Opened Task Reports</a> <a id="report_link" class="first-line-buttons ui-disabled" data-i18n="[value]Task Reports" disabled >Opened Task Reports</a>
<a id="closed_report_link" class="first-line-buttons ui-disabled" data-i18n="[value]Closed Task Reports" disabled >Closed Task Reports</a> <a id="bug_link" class="first-line-buttons ui-disabled" data-i18n="[value]Bugs" disabled >Opened Bugs</a>
</p> </p>
</div> </div>
<div class="ui-field-contain project_links"> <div class="ui-field-contain project_links">
...@@ -46,7 +38,6 @@ ...@@ -46,7 +38,6 @@
<div class="ui-field-contain project_links"> <div class="ui-field-contain project_links">
<p> <p>
<a id="web_page_link" class="first-line-buttons ui-disabled" data-i18n="[value]Edit Project Page" disabled >Edit Project Page</a> <a id="web_page_link" class="first-line-buttons ui-disabled" data-i18n="[value]Edit Project Page" disabled >Edit Project Page</a>
<a id="rss_link" target="_blank" class="first-line-buttons ui-disabled" data-i18n="[value]Generate RSS" disabled >Generate RSS</a>
</p> </p>
</div> </div>
<div class="ui-field-contain project_links"> <div class="ui-field-contain project_links">
......
...@@ -216,6 +216,7 @@ ...@@ -216,6 +216,7 @@
editor.render({"editor": "fck_editor", "editable": false, editor.render({"editor": "fck_editor", "editable": false,
"value": web_page_info.content}); "value": web_page_info.content});
return gadget.getUrlForList([ return gadget.getUrlForList([
//TODO drop 4, 6 and 9 calls when closed links removal is confirmed
getUrlParameterDict('milestone_module', milestone_view, [["stop_date", "ascending"]]), getUrlParameterDict('milestone_module', milestone_view, [["stop_date", "ascending"]]),
getUrlParameterDict('task_module', "view", [["delivery.start_date", "descending"]], getUrlParameterDict('task_module', "view", [["delivery.start_date", "descending"]],
["title", "delivery.start_date", "delivery.stop_date", "destination_decision_title", ["title", "delivery.start_date", "delivery.stop_date", "destination_decision_title",
...@@ -258,16 +259,17 @@ ...@@ -258,16 +259,17 @@
]); ]);
}) })
.push(function (url_list) { .push(function (url_list) {
//TODO update url_list index when closed links removal is confirmed
enableLink(document.getElementById("milestone_link"), url_list[0]); enableLink(document.getElementById("milestone_link"), url_list[0]);
enableLink(document.getElementById("task_link"), url_list[1]); enableLink(document.getElementById("task_link"), url_list[1]);
enableLink(document.getElementById("support_request_link"), url_list[2]); enableLink(document.getElementById("support_request_link"), url_list[2]);
enableLink(document.getElementById("bug_link"), url_list[3]); enableLink(document.getElementById("bug_link"), url_list[3]);
enableLink(document.getElementById("closed_bug_link"), url_list[4]); //enableLink(document.getElementById("closed_bug_link"), url_list[4]);
enableLink(document.getElementById("report_link"), url_list[5]); enableLink(document.getElementById("report_link"), url_list[5]);
enableLink(document.getElementById("closed_report_link"), url_list[6]); //enableLink(document.getElementById("closed_report_link"), url_list[6]);
enableLink(document.getElementById("test_result_link"), url_list[7]); enableLink(document.getElementById("test_result_link"), url_list[7]);
enableLink(document.getElementById("test_suite_link"), url_list[8]); enableLink(document.getElementById("test_suite_link"), url_list[8]);
enableLink(document.getElementById("not_confirmed_task_link"), url_list[9]); //enableLink(document.getElementById("not_confirmed_task_link"), url_list[9]);
if (web_page_info.id) { if (web_page_info.id) {
enableLink(document.getElementById("web_page_link"), url_list[10]); enableLink(document.getElementById("web_page_link"), url_list[10]);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment