HTMLify
git-clone.html
Views: 485 | Author: abh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <!DOCTYPE html> <html> <head> <title>Git Clone</title> {% include 'stylesheet.html' %} <style> </style> </head> <body> <h1>HTMLify</h1> {% include 'search-bar.html' %} {% include 'nav-bar.html' %} <form class="git-clone" action="/action/git-clone" method="post"> {% if request.args.get("msg") %} <div class="error-msg"> {{ request.args.get("msg") }} </div> {% endif %} git clone <input type="text" id="repo" name="repo" placeholder="http://yourgit.host/path-to-your/repo.git" required><br><br> <label for="directory">Directory (where to clone the repo):</label> {{ session["user"]["username"] }}/<input type="text" id="directory" name="directory" placeholder="my-repo" value="{{ request.args.get("dir", "") if request.args.get("dir", " ")[-1] != "/" else request.args.get("dir", "")[:-1] }}"><br><br> Display Mode: <select id="mode" name="mode"> <option value='s'>Show</option> <option value='p'>Parse</option> <option value='r'>Raw</option> </select> Visibility: <select id="visibility" name="visibility"> <option value='p'>Public</option> <option value='h'>Hidden</option> </select> <br><br> <input type="submit" value="Clone Repository"> <br><br> Note: this git clone will ingnore hidden files and directories<br> and ovewrite existing files. </form> </body> </html> |