Merged from log:sprint/79/suresh@2605: Suresh' addition of a search function for drafts on their respective mailing lists. Fixes issue #458.

- Legacy-Id: 2611
This commit is contained in:
Henrik Levkowetz 2010-11-06 06:27:06 +00:00
parent b652330f2a
commit af72493157
3 changed files with 17 additions and 0 deletions

View file

@ -151,6 +151,20 @@ class IdWrapper:
return ""
def search_archive(self):
if self._idinternal and self._idinternal.via_rfc_editor:
return "www.ietf.org/mail-archive/web/"
if self._draft.group_id == Acronym.INDIVIDUAL_SUBMITTER:
return "www.ietf.org/mail-archive/web/"
a = self._draft.group_ml_archive()
if a:
return a
return ""
def file_types(self):
return self._draft.file_type.split(",")

View file

@ -181,6 +181,8 @@ class InternetDraft(models.Model):
return "<%s-%s.txt>" % (self.filename, self.revision_display())
def group_acronym(self):
return self.group.acronym
def group_ml_archive(self):
return self.group.ietfwg.clean_email_archive()
def idstate(self):
idinternal = self.idinternal
if idinternal:

View file

@ -82,6 +82,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| <a href="http://www.fenron.net/~fenner/ietf/deps/index.cgi?dep={{doc.draft_name}}" rel="nofollow">Dependencies to this draft</a>
| <a href="http://tools.ietf.org/idnits?url=http://tools.ietf.org/id/{{doc.draft_name_and_revision}}.txt" rel="nofollow" target="_blank">Check nits</a>
{% if doc.in_ietf_process %}| <a href="/feed/comments/{% if info.is_rfc %}rfc{{doc.rfc_number}}{% else %}{{doc.draft_name}}{% endif %}/">Comments feed</a>{% endif %}
| <a href="http://www.google.com/search?as_q={{doc.draft_name}}&as_sitesearch={{ doc.search_archive }}" rel="nofollow" target="_blank">Search Mailing Lists</a>
</div>
{% if user|in_group:"Area_Director,Secretariat" %}
<div>