WIP Collaborative Project Management first commit
diff --git a/erpnext/templates/includes/projects/project_issues.html b/erpnext/templates/includes/projects/project_issues.html
new file mode 100644
index 0000000..14ce70f
--- /dev/null
+++ b/erpnext/templates/includes/projects/project_issues.html
@@ -0,0 +1,31 @@
+{% for issue in doc.issues %}
+ <div class='issue'>
+ <div class='row project-item'>
+ <div class='col-xs-9'>
+ <a class="no-decoration" href="/issues-view?name={{ issue.name}}">
+ <span class="indicator {{ "green" if issue.status=="Open" else "darkgrey" }}">
+ {% if issue.status == "Closed" %}
+ {{ issue.subject }} resolved {{ frappe.utils.pretty_date(issue.resolution_date) }}
+ {% else %}
+ {{ issue.subject }} raised on {{ issue.opening_date }}
+ {% endif %}
+ </span>
+ </a>
+ </div>
+ <div class='col-xs-3'>
+ <div class='pull-right'>
+ {% if issue.todo %}
+ <span class="avatar avatar-small" title="{{ issue.todo.owner }}"> <img src="{{ issue.todo.user_image }}"></span>
+ {% else %}
+ <span class="avatar avatar-small avatar-empty"></span>
+ {% endif %}
+ </div>
+ <div class='pull-right' style='padding-right:10px;'>
+ {% if issue.status != "Closed" %}
+ <span class="text-extra-muted "> <i class="octicon octicon-x issue-x" title="Close" id = "{{issue.name}}"></i> </span>
+ {% endif %}
+ </div>
+ </div>
+ </div>
+ </div>
+{% endfor %}
diff --git a/erpnext/templates/includes/projects/project_tasks.html b/erpnext/templates/includes/projects/project_tasks.html
new file mode 100644
index 0000000..84de0e8
--- /dev/null
+++ b/erpnext/templates/includes/projects/project_tasks.html
@@ -0,0 +1,30 @@
+{% for task in doc.tasks %}
+ <div class='task'>
+ <div class='row project-item'>
+ <div class='col-xs-9'>
+ <a class="no-decoration" href="/tasks-view?name={{ task.name}}">
+ <span class="indicator {{ "green" if task.status=="Open" else "darkgrey" }}">
+ {% if task.status == "Closed" %}
+ {{ task.subject }} completed on {{ task.closing_date }}
+ {% else %}
+ {{ task.subject }}
+ {% endif %}
+ </span>
+ </a>
+ </div>
+ <div class='col-xs-3'>
+ <div class='pull-right'>
+ {% if task.todo %} <span class="avatar avatar-small" title="{{ task.todo.owner }}"> <img src="{{ task.todo.user_image }}"></span>
+ {% else %}
+ <span class="avatar avatar-small avatar-empty"></span>
+ {% endif %}
+ </div>
+ <div class='pull-right' style='padding-right:10px;'>
+ {% if task.status != "Closed" %}
+ <span class="text-extra-muted "> <i class="octicon octicon-x task-x" title="Close" id = "{{task.name}}"></i> </span>
+ {% endif %}
+ </div>
+ </div>
+ </div>
+ </div>
+{% endfor %}
\ No newline at end of file
diff --git a/erpnext/templates/includes/projects/project_timelogs.html b/erpnext/templates/includes/projects/project_timelogs.html
new file mode 100644
index 0000000..4934032
--- /dev/null
+++ b/erpnext/templates/includes/projects/project_timelogs.html
@@ -0,0 +1,20 @@
+{% for timelog in doc.timelogs %}
+<div class='timelog'>
+ <div class='row project-item'>
+ <div class='col-xs-9'>
+ <a class="no-decoration" href="/timelog_info?timelog={{ timelog.name}}">
+ <span class="indicator {{ "green" if timelog.status=="Draft" else "blue" if timelog.status=="Submitted" else "darkgrey"}}">
+
+ {{ timelog.title }}: From {{ frappe.format_date(timelog.from_time) }} to {{ frappe.format_date(timelog.to_time) }}
+
+</span>
+ </a>
+ </div>
+ <div class='col-xs-3'>
+ <div class='pull-right'>
+ <span class="avatar avatar-small" title="{{ timelog.modified_by }}"> <img src="{{ timelog.user_image }}"></span>
+ </div>
+ </div>
+ </div>
+</div>
+{% endfor %}
\ No newline at end of file
diff --git a/erpnext/templates/includes/projects/timeline.html b/erpnext/templates/includes/projects/timeline.html
new file mode 100644
index 0000000..77b0c76
--- /dev/null
+++ b/erpnext/templates/includes/projects/timeline.html
@@ -0,0 +1,44 @@
+{% for timeline in doc.timelines %}
+<div class='timeline'>
+ <div class="row project-item">
+ <div class="col-xs-12">
+ <span class="avatar avatar-small" title="{{ timeline.modified_by }}"> <img src="{{ timeline.user_image }}"></span>
+ <span class='indicator'>
+ {{timeline.reference_name}} {{timeline.subject }}
+ </span>
+ <span class='indicator pull-right'>
+ {{ frappe.utils.pretty_date(timeline.creation) }}
+ </span>
+ </div>
+ </div>
+</div>
+{% endfor %}
+<!-- <div class="timeline-centered">
+{% for timeline in doc.timelines %}
+
+
+
+ <article class="timeline-entry">
+
+ <div class="timeline-entry-inner">
+
+ <div class="timeline-icon bg-warning">
+ <i class="entypo-camera"></i>
+ </div>
+
+ <div class="timeline-label">
+ <span class="avatar avatar-small" title="{{ timeline.modified_by }}"> <img src="{{ timeline.user_image }}"></span>
+ <span class='indicator'>
+ {{timeline.reference_name}} {{timeline.subject }}
+ </span>
+ <span class='indicator pull-right'>
+ {{ frappe.utils.pretty_date(timeline.creation) }}
+ </span>
+ </div>
+ </div>
+
+ </article>
+
+
+{% endfor %}
+</div> -->
\ No newline at end of file