File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 42
42
< dt > {% trans "Versions" %}</ dt >
43
43
{% for version in versions %}
44
44
< dd {% if version == current_version %} class ="rtd-current-item " {% endif %} >
45
- < a href ="{{ version.get_subdomain_url }}{{ path|default_if_none: "" }}"> {{ version.explicit_name }}</ a >
45
+ < a href ="{{ version.get_subdomain_url }}{{ path|default_if_none: "" }}"> {{ version.verbose_name }}</ a >
46
46
</ dd >
47
47
{% endfor %}
48
48
</ dl >
Original file line number Diff line number Diff line change @@ -206,17 +206,16 @@ def explicit_name(self):
206
206
For example, if a version originates from GitHub pull request #4, then
207
207
``version.explicit_name == "#4 (PR)"``.
208
208
209
- On the other hand, Versions associated with regular ReadTheDocs builds
209
+ On the other hand, Versions associated with regular RTD builds
210
210
(e.g. new tags or branches), simply return :obj:`~.verbose_name`.
211
211
This means that a regular git tag named **v4** will correspond to
212
212
``version.explicit_name == "v4"``.
213
213
"""
214
- external_origin = external_version_name (self )
215
-
216
- if not external_origin :
214
+ if not self .is_external :
217
215
return self .verbose_name
218
216
219
217
template = '#{name} ({abbrev})'
218
+ external_origin = external_version_name (self )
220
219
abbrev = '' .join (word [0 ].upper () for word in external_origin .split ())
221
220
return template .format (name = self .verbose_name , abbrev = abbrev )
222
221
You can’t perform that action at this time.
0 commit comments