JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
improved contractor nav links: removed 'report a bug', added 'manage accounts'. Also...
[contractor-progress.git] / index.php
index d8eb411..ab4ff12 100644 (file)
--- a/index.php
+++ b/index.php
@@ -123,7 +123,7 @@ function _index_main() {
        }
 
        if(logged_in_as_contractor()) {
-               tem_show('su_link');
+               tem_show('contractor_links');
                tem_show('needs_attention_header');
 
                $GLOBALS['unpaid_totals'] = array();
@@ -138,6 +138,7 @@ function _index_main() {
                totals_summary($GLOBALS['unpaid_totals']);
                task_summary('finished_paid', 'where state=%i && paid = 1 order by finished_at desc limit 20', TASK_FINISHED);
        } else {
+               tem_show('not_contractor_links');
                if(db_count('tasks', 'where client_id=%i && (state=%i || state=%i || state=%i || state=%i)', $client_id, TASK_DRAFT, TASK_NEEDS_CLARIFICATION, TASK_NEEDS_GO_AHEAD, TASK_NEEDS_TESTING)) {
                        tem_show('needs_attention_header');
                        task_summary('needs_approval', 'where client_id=%i && (state=%i || state=%i) order by id', $client_id, TASK_NEEDS_GO_AHEAD, TASK_NEEDS_TESTING);