from . import db | from . import db | ||||
from .models import Tool | from .models import Tool | ||||
from sqlalchemy.sql import func | from sqlalchemy.sql import func | ||||
from sqlalchemy.orm import load_only | |||||
main = Blueprint('main', __name__) | main = Blueprint('main', __name__) | ||||
</p> | </p> | ||||
{% if current_user.is_authenticated %} | {% if current_user.is_authenticated %} | ||||
<a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}"> | <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}"> | ||||
<span class="badge bg-warning">Edit</span> | |||||
<span class="badge bg-dark">Edit</span> | |||||
</a> | </a> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> |
</p> | </p> | ||||
{% if current_user.is_authenticated %} | {% if current_user.is_authenticated %} | ||||
<a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}"> | <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}"> | ||||
<span class="badge bg-warning">Edit</span> | |||||
<span class="badge bg-dark">Edit</span> | |||||
</a> | </a> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> |