mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-28 16:10:05 +08:00
b4d3eab02c
Add foreman configuration for Heroku: - To test production configuration execute NODE_ENV=production foreman start - Database connection configuration now handles "use_env_variable" which should be defined as a environment variable such as "DATABASE_URL" with a proper database URI connection string, ie: postgres://user:password@db.example.com:5432/database - Added package.json configuration to run migrations and db seed after `npm install` Update frontend models to match sequelize definition. Update views to work according to the changes above. Handling isCompleted and parentId apropiately for PostgreSQL databases
25 lines
745 B
HTML
25 lines
745 B
HTML
<div class="task-wrappper">
|
|
<div class="task">
|
|
<div class="link">•
|
|
<div class="options">
|
|
<div class="options-left">
|
|
<div class="mouse-tip"></div>
|
|
<% if(model.isCompleted){%>
|
|
<a class="uncomplete">Uncomplete<hr></a>
|
|
<%}else {%>
|
|
<a class="complete">Complete<hr></a>
|
|
<%}%>
|
|
<a class="note">
|
|
<span class="note">Add Note</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<% if(model.isCompleted){%>
|
|
<input value="<%= model.content %>" data-id="<%= model.id %>" class="edit task-completed">
|
|
<%}else {%>
|
|
<input value="<%= model.content %>" data-id="<%= model.id %>" class="edit">
|
|
<%}%>
|
|
</div>
|
|
</div> |