Merge lp:~21stefano/wiki-ubuntu-it/wiki-repo-with-msg-releases into lp:~ubuntu-it-wiki/wiki-ubuntu-it/wiki-repo

Proposed by Stefano Pica on 2017-06-21
Status: Merged
Approved by: Jeremie Tamburini on 2017-06-21
Approved revision: no longer in the source branch.
Merged at revision: 251
Proposed branch: lp:~21stefano/wiki-ubuntu-it/wiki-repo-with-msg-releases
Merge into: lp:~ubuntu-it-wiki/wiki-ubuntu-it/wiki-repo
Diff against target: 38 lines (+11/-3)
1 file modified
data/plugin/macro/Informazioni.py (+11/-3)
To merge this branch: bzr merge lp:~21stefano/wiki-ubuntu-it/wiki-repo-with-msg-releases
Reviewer Review Type Date Requested Status
Jeremie Tamburini 2017-06-21 Approve on 2017-06-21
Review via email: mp+326072@code.launchpad.net

Commit message

Added message for deprecated releases

Description of the change

Merge request
Added message for deprecated releases

To post a comment you must log in.
Jeremie Tamburini (jeremie2) wrote :

merge-approved

review: Approve
251. By Jeremie Tamburini on 2017-06-21

Merge 21stefano/wiki-ubuntu-it/wiki-repo-with-msg-releases - New macro Informazioni

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/plugin/macro/Informazioni.py'
2--- data/plugin/macro/Informazioni.py 2017-06-03 11:53:09 +0000
3+++ data/plugin/macro/Informazioni.py 2017-06-21 12:33:44 +0000
4@@ -12,6 +12,8 @@
5 # Formato:
6 # Informazioni(help="link", forum="link", rilasci="9.10 8.10")
7
8+URL_PARTECIPA = 'GruppoDocumentazione/Partecipa'
9+
10 header = '''
11 <div class="page_info">
12 <div class="toc-top-sx"> </div>
13@@ -158,6 +160,10 @@
14
15
16 def execute(self, args):
17+ message_alert = ('<p class="informazioni-partecipa"><p style="color:#c11">ATTENZIONE!\
18+ <br>Questa guida non &egrave stata verificata con nessuna versione supportata di Ubuntu ,\
19+ potrebbe non essere pi&ugrave valida. Vuoi contribuire ad aggiornarla?\
20+ </p>%sPartecipa%s.</p>' % (self.formatter.url(on=1, url=URL_PARTECIPA), self.formatter.url(on=0)))
21 if len(args) is 0:
22 return ''
23 dict_args = from_args_to_dict (args)
24@@ -171,9 +177,11 @@
25
26 if 'rilasci' in dict_args:
27 rilasci = releases(self, dict_args['rilasci'])
28- if rilasci is not '':
29- found = True
30- self.result.append(rilasci)
31+ if rilasci is '':
32+ self.result.append(message_alert)
33+ else:
34+ self.result.append(rilasci)
35+ found = True
36 if 'forum' in dict_args:
37 self.result.append(forum(self, dict_args['forum']))
38 found = True

Subscribers

People subscribed via source and target branches