|
1 |
| -{% extends "base.html" %} |
2 |
| -{% load i18n %} |
3 |
| -{% load pagination_tags %} |
4 |
| - |
5 |
| -{% block title %}{% trans "Project Dashboard" %}{% endblock %} |
6 |
| - |
7 |
| -{% block dash-nav-projects %}active{% endblock %} |
8 |
| - |
9 |
| -{% block content %} |
10 |
| - {% url "projects_import" as projects_import_url %} |
11 |
| - {% url "socialaccount_connections" as social_accounts %} |
12 |
| - |
13 |
| - <!-- BEGIN your projects list --> |
14 |
| - <div class="col-major project-dashboard-right"> |
15 |
| - {% if project_list %} |
16 |
| - |
17 |
| - {% if filter|length > 0 %} |
18 |
| - <div class="module-header"> |
19 |
| - <h3>{% trans "Important Versions" %}</h3> |
20 |
| - </div> |
21 |
| - |
22 |
| - <div class="filter"> |
23 |
| - {% autopaginate filter 15 %} |
24 |
| - |
25 |
| - <!-- BEGIN filter list --> |
26 |
| - <div class="module"> |
27 |
| - <div class="module-wrapper"> |
28 |
| - |
29 |
| - <div class="module-list"> |
30 |
| - <div class="module-list-wrapper"> |
31 |
| - <ul> |
32 |
| - {% include "core/filter_list.html" %} |
33 |
| - </ul> |
34 |
| - </div> |
35 |
| - </div> |
36 |
| - |
37 |
| - </div> |
38 |
| - </div> |
39 |
| - <!-- END filter list --> |
40 |
| - |
41 |
| - {% paginate %} |
42 |
| - |
43 |
| - </div> |
44 |
| - {% endif %} |
45 |
| - |
46 |
| - <div class="module"> |
47 |
| - <div class="module-wrapper"> |
48 |
| - |
49 |
| - <div class="module-header"> |
50 |
| - <form method="get" action="{{ projects_import_url }}"> |
51 |
| - <input type="submit" value="Import a Project" /> |
52 |
| - </form> |
53 |
| - <h3>{% trans "Projects" %}</h3> |
54 |
| - </div> |
55 |
| - |
56 |
| - <div class="module-list"> |
57 |
| - <div class="module-list-wrapper"> |
58 |
| - |
59 |
| - <ul> |
60 |
| - {% for project in project_list %} |
61 |
| - <li class="module-item col-span"> |
62 |
| - <a href="{% url "projects_manage" project.slug %}"> |
63 |
| - {{ project.name }} |
64 |
| - {% with builds=project.builds.count %} |
65 |
| - {% if builds == 0 %} |
66 |
| - <span class="right quiet"> |
67 |
| - {% trans "No builds yet" %} |
68 |
| - </span> |
69 |
| - {% else %} |
70 |
| - <span class="right quiet"> |
71 |
| - <span class="build-count"> |
72 |
| - {% if builds == 1 %} |
73 |
| - {% trans "1 build" %} |
74 |
| - {% else %} |
75 |
| - {{ builds }} {% trans "builds" %} |
76 |
| - {% endif %} |
77 |
| - </span> |
78 |
| - {% with build=project.get_latest_build %} |
79 |
| - {% if build.success %} |
80 |
| - <span class="build-state build-state-passing">{% trans "passing" %}</span> |
81 |
| - {% else %} |
82 |
| - <span class="build-state build-state-failing">{% trans "failing" %}</span> |
83 |
| - {% endif %} |
84 |
| - {% endwith %} |
85 |
| - </span> |
86 |
| - {% endif %} |
87 |
| - {% endwith %} |
88 |
| - </a> |
89 |
| - </li> |
90 |
| - {% endfor %} |
91 |
| - </ul> |
92 |
| - |
93 |
| - </div> |
94 |
| - </div> |
95 |
| - </div> |
96 |
| - </div> |
97 |
| - |
98 |
| - {% else %} |
99 |
| - |
100 |
| - <!-- BEGIN onboard import project --> |
101 |
| - <div class="module onboard onboard-import-project"> |
102 |
| - <h2>Ready to share your documentation{% if request.user.first_name %}, {{ request.user.first_name }}{% endif %}?</h2> |
103 |
| - |
104 |
| - {% with getting_started_url="http://docs.readthedocs.org/en/latest/getting_started.html" %} |
105 |
| - <form method="get" action="{{ projects_import_url }}"> |
106 |
| - <p> |
107 |
| - {% blocktrans %} |
108 |
| - You don't have any projects yet, but you can start building documentation by importing one. |
109 |
| - Not sure how to start documenting your project? |
110 |
| - Check out the <a href="{{ getting_started_url }}">Getting Started Guide</a> to learn how. |
111 |
| - {% endblocktrans %} |
112 |
| - </p> |
113 |
| - |
114 |
| - <input type="submit" value="Import a Project" /> |
115 |
| - </form> |
116 |
| - {% endwith %} |
117 |
| - </div> |
118 |
| - <!-- END onboard import project --> |
119 |
| - |
120 |
| - {% endif %} |
121 |
| - </div> |
122 |
| - <!-- END your projects list --> |
123 |
| - |
124 |
| - <!-- BEGIN project side bar --> |
125 |
| - <div class="col-minor project-dashboard-right"> |
126 |
| - |
127 |
| - <div class="module onboard onbard-accounts"> |
128 |
| - |
129 |
| - <!-- BEGIN search form --> |
130 |
| - <form action="{% url 'search' %}" method="GET"> |
131 |
| - <div class="text-input-wrapper"> |
132 |
| - <input type="text" name="q" style="width: 10em;" id="id_elastic_project_search"> |
133 |
| - {% if type %} |
134 |
| - <input type="hidden" name="type" value="{{ type }}"> |
135 |
| - {% endif %} |
136 |
| - {% if taxonomy %} |
137 |
| - <input type="hidden" name="taxonomy" value="{{ taxonomy }}"> |
138 |
| - {% endif %} |
139 |
| - </div> |
140 |
| - <div class="submit-input-wrapper"> |
141 |
| - {% comment %}Translators: This is about starting a search{% endcomment %} |
142 |
| - <input type="submit" value="{% trans "Search" %}"> |
143 |
| - </div> |
144 |
| - </form> |
145 |
| - <!-- END search form --> |
146 |
| - |
147 |
| - {% if request.user.socialaccount_set.count == 0 %} |
148 |
| - <h3>Connect your Accounts</h3> |
149 |
| - |
150 |
| - <p> |
151 |
| - {% blocktrans %} |
152 |
| - Have a Github account? Connect your account and import your existing projects automatically. |
153 |
| - {% endblocktrans %} |
154 |
| - </p> |
155 |
| - |
156 |
| - <form method="get" action="{{ social_accounts }}"> |
157 |
| - <input type="submit" value="Connect to Github" /> |
158 |
| - </form> |
159 |
| - </div> |
160 |
| - {% else %} |
161 |
| - <p> |
162 |
| - <form method="get" action="{% url 'projects_import_github' %}"> |
163 |
| - <input type="submit" value="Import from GitHub" /> |
164 |
| - </form> |
165 |
| - </p> |
166 |
| - |
167 |
| - {% endif %} |
168 |
| - |
169 |
| - <div class="module info info-docs"> |
170 |
| - <p> |
171 |
| - Check out the <a href="http://docs.readthedocs.org/en/latest/index.html">documentation for Read the Docs</a>. |
172 |
| - It contains lots of information about how to get the most out of RTD. |
173 |
| - </p> |
174 |
| - </div> |
175 |
| - </div> |
176 |
| - <!-- END project side bar --> |
177 |
| - |
178 |
| - {% comment %} |
179 |
| - {% if bookmark_list %} |
180 |
| - <!-- BEGIN marks list --> |
181 |
| - <div class="module"> |
182 |
| - <div class="module-wrapper"> |
183 |
| - <div class="module-header"> |
184 |
| - <h3>{% trans "Recently Bookmarked Docs" %} <span class="small_head"><a href="{% url "user_bookmarks" %}">{% trans "(All My Bookmarks)" %}</a></span></h3> |
185 |
| - </div> |
186 |
| - |
187 |
| - <div class="module-list"> |
188 |
| - <div class="module-list-wrapper"> |
189 |
| - <ul> |
190 |
| - {% include "core/bookmark_list_detailed.html" %} |
191 |
| - </ul> |
192 |
| - </div> |
193 |
| - </div> |
194 |
| - |
195 |
| - </div> |
196 |
| - </div> |
197 |
| - <!-- END marks list --> |
198 |
| - {% endif %} |
199 |
| - {% endcomment %} |
200 |
| - |
201 |
| -{% endblock %} |
| 1 | +{% extends 'projects/project_dashboard_base.html' %} |
0 commit comments