<commit_before>{% extends "base.html" %}
{% load filters %}
{% block brand-link %}/dashboard{% endblock %}
{% block title %}Register Tool{% endblock %}
{% block navbar-right %}
    <div id="navbar-collapse" class="collapse navbar-collapse navbar-right">
        <ul class="nav navbar-nav">
            <li><a href="/browsetool" class="navbar-link"><span class="glyphicon glyphicon-search"></span> Browse tools</a></li>
            <li><a href="/profile" class="navbar-link"><span class="glyphicon glyphicon-cog"></span> Profile</a></li>
            <li><a href="{% url "account:signout" %}" class="navbar-link"><span class="glyphicon glyphicon-log-out"></span> Sign out</a></li>
        </ul>
    </div>
{% endblock %}
{% block content %}

    <div class="auth-box">
        <img class="img-square" src="{{tooldata.picture.url}}" alt="{{tooldata.name}}"
        class="img-circle" style="width: 100%; height: 350px;"/>

        <p> Name of tool: {{ tooldata.name }}</p>
        <p> Category: {{ tooldata.get_category_display }}</p>
        <p> Tool Status: {{ tooldata.get_status_display}}</p>
        <p> Sharing Location: {{ tooldata.get_location_display }}</p>
        <p> Owner: {{ tooldata.owner.get_full_name }}</p>
        <p> Tool Description: {{ tooldata.description }}</p>
        <p> Pickup Arrangements: {{ tooldata.pickupArrangement }}</p>

        {% if isToolOnwer %}
            <p>the owner!</p>
        {% else %}
            <p>not the owner!</p>

        {% endif %}

    </div>






{% endblock %}<commit_msg>Added basic borrow link to tool details<commit_after>{% extends "base.html" %}
{% load filters %}
{% block brand-link %}/dashboard{% endblock %}
{% block title %}Register Tool{% endblock %}
{% block navbar-right %}
    <div id="navbar-collapse" class="collapse navbar-collapse navbar-right">
        <ul class="nav navbar-nav">
            <li><a href="/browsetool" class="navbar-link"><span class="glyphicon glyphicon-search"></span> Browse tools</a></li>
            <li><a href="/profile" class="navbar-link"><span class="glyphicon glyphicon-cog"></span> Profile</a></li>
            <li><a href="{% url "account:signout" %}" class="navbar-link"><span class="glyphicon glyphicon-log-out"></span> Sign out</a></li>
        </ul>
    </div>
{% endblock %}
{% block content %}

    <div class="auth-box">
        <img class="img-square" src="{{tooldata.picture.url}}" alt="{{tooldata.name}}"
        class="img-circle" style="width: 100%; height: 350px;"/>

        <p> Name of tool: {{ tooldata.name }}</p>
        <p> Category: {{ tooldata.get_category_display }}</p>
        <p> Tool Status: {{ tooldata.get_status_display}}</p>
        <p> Sharing Location: {{ tooldata.get_location_display }}</p>
        <p> Owner: {{ tooldata.owner.get_full_name }}</p>
        <p> Tool Description: {{ tooldata.description }}</p>
        <p> Pickup Arrangements: {{ tooldata.pickupArrangement }}</p>

        {% if not isToolOwner %}
            <a href="/Borrow/{{ tooldata.id }}">Borrow</a>
        {% endif %}

    </div>






{% endblock %}
{'fraction_non_alphanumeric': 0.1998695793935442, 'fraction_numerical': 0.0039126181936746, 'mean_word_length': 3.0528401585204756, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5735125', 'n_tokens_mistral': 1084, 'n_tokens_neox': 980, 'n_words': 217}