-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (68 loc) · 3.51 KB
/
index.html
File metadata and controls
72 lines (68 loc) · 3.51 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{% extends 'layout.html' %}
{% load static %}
{% load humanize %}
{% block title %}Ports |{% endblock %}
{% block content %}
<h4 class="text-left p-0 mb-0 text-secondary mt-5">Available Ports for <ins>The MacPorts Project</ins></h4>
<h1 class="display-4 font-weight-bold text-left">
Install and upgrade open source software on macOS.
</h1>
<form class="mt-4" method="get" action="/search">
<div class="form-row">
<div class="col-md-8 col-12" id="bloodhound">
<input type="text" class="quick-input-search form-control rounded-pill typeahead" id="q" name="q"
placeholder="Start typing..." autofocus>
<img class="quick-input-search-spinner" id="search-spinner" src="{% static 'images/tspinner.gif' %}">
<button type="submit" class="quick-input-search-icon btn" id="search_submit"><i
class="fa fa-search"></i></button>
<input type="hidden" value="on" name="name">
<div class="my-4 text-center text-md-left">
<a class="btn btn-outline-secondary font-weight-bold rounded-pill mt-1" href="{% url 'search' %}">All
Ports</a>
<a class="btn btn-outline-secondary font-weight-bold rounded-pill mt-1"
href="https://www.macports.org/install.php">Install MacPorts</a>
</div>
</div>
</div>
</form>
<div class="row">
<div class="col-md-4 mt-md-0 mt-3">
<div class="card">
<div class="card-header bg-light">
<h6 class="text-uppercase mb-0">Popular ports</h6>
</div>
<div class="card-body px-3 py-1">
{% for top_port in top_ports %}
<a class="btn btn-link btn-lg text-dark p-0"
href="{% url 'port_detail' top_port.port %}">{{ top_port.port }}</a></span><br>
{% endfor %}
</div>
<a href="{% url 'stats_port_installations' %}" class="btn btn-light">More...</a>
</div>
</div>
<div class="col-md-4 mt-md-0 mt-3">
<div class="card">
<div class="card-header bg-light">
<h6 class="text-uppercase mb-0">Recently Added</h6>
</div>
<div class="card-body px-3 py-1">
{% for port in recently_added %}
<a class="btn btn-link btn-lg text-dark p-0"
href="{% url 'port_detail' port.name %}">{{ port.name }} <span class="f14 text-muted">({{ port.created_at|naturaltime }})</span></a></span><br>
{% endfor %}
</div>
</div>
</div>
<div class="col-md-4 mt-md-0 mt-3">
<div class="card p-0">
<div class="card-header bg-light">
<h6 class="text-uppercase mb-0">Active Ports</h6>
</div>
<div class="card-body px-3 py-1">
<h1 class="display-6 mb-0">{{ ports_count|intcomma }}</h1>
</div>
<a href="{% url 'search' %}" class="btn btn-light">View all</a>
</div>
</div>
</div>
{% endblock %}