- gitlist.git
- src
- twig
- layout-page.twig
This file ( 2kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
{% extends 'layout.twig' %}
{% block body %}
{% include 'navigation.twig' %}
<div class="container">
{% if page in ['commits', 'searchcommits'] %}
<form class="form-group" action="{{ repo }}/commits/{{ branch }}/search" method="POST">
<div class="input-group">
<input type="text" minlength="3" required value="{{ search_query }}" name="query"
class="form-control input-sm" placeholder="Search commits..."
onkeypress="window.gitlist.setInputQuery('query')" autofocus>
<div class="input-group-btn">
<button class="btn btn-default btn-sm" type="button"
onclick="window.gitlist.clearInput('query')">
<i class="fas fa-times"></i>
</button>
<button class="btn btn-default btn-sm" type="submit">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</form>
{% else %}
<form class="form-group" action="{{ repo }}/tree/{{ branch }}/search" method="POST">
<div class="input-group">
<input type="text" minlength="3" required value="{{ search_query }}" name="query"
class="form-control input-sm" placeholder="Search tree..."
onkeypress="window.gitlist.setInputQuery('query')" autofocus>
<div class="input-group-btn">
<button class="btn btn-default btn-sm" type="button"
onclick="window.gitlist.clearInput('query')">
<i class="fas fa-times"></i>
</button>
<button class="btn btn-default btn-sm" type="submit">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</form>
{% endif %}
{% include 'menu.twig' %}
{% block content %}{% endblock %}
</div>
{% include 'footer.twig' %}
{% endblock %}