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
=== modified file 'data/plugin/macro/Informazioni.py'
--- data/plugin/macro/Informazioni.py 2017-06-03 11:53:09 +0000
+++ data/plugin/macro/Informazioni.py 2017-06-21 12:33:44 +0000
@@ -12,6 +12,8 @@
12# Formato:12# Formato:
13# Informazioni(help="link", forum="link", rilasci="9.10 8.10")13# Informazioni(help="link", forum="link", rilasci="9.10 8.10")
1414
15URL_PARTECIPA = 'GruppoDocumentazione/Partecipa'
16
15header = '''17header = '''
16 <div class="page_info">18 <div class="page_info">
17 <div class="toc-top-sx"> </div>19 <div class="toc-top-sx"> </div>
@@ -158,6 +160,10 @@
158160
159161
160def execute(self, args):162def execute(self, args):
163 message_alert = ('<p class="informazioni-partecipa"><p style="color:#c11">ATTENZIONE!\
164 <br>Questa guida non &egrave stata verificata con nessuna versione supportata di Ubuntu ,\
165 potrebbe non essere pi&ugrave valida. Vuoi contribuire ad aggiornarla?\
166 </p>%sPartecipa%s.</p>' % (self.formatter.url(on=1, url=URL_PARTECIPA), self.formatter.url(on=0)))
161 if len(args) is 0:167 if len(args) is 0:
162 return ''168 return ''
163 dict_args = from_args_to_dict (args)169 dict_args = from_args_to_dict (args)
@@ -171,9 +177,11 @@
171177
172 if 'rilasci' in dict_args:178 if 'rilasci' in dict_args:
173 rilasci = releases(self, dict_args['rilasci'])179 rilasci = releases(self, dict_args['rilasci'])
174 if rilasci is not '':180 if rilasci is '':
175 found = True181 self.result.append(message_alert)
176 self.result.append(rilasci)182 else:
183 self.result.append(rilasci)
184 found = True
177 if 'forum' in dict_args:185 if 'forum' in dict_args:
178 self.result.append(forum(self, dict_args['forum']))186 self.result.append(forum(self, dict_args['forum']))
179 found = True187 found = True

Subscribers

People subscribed via source and target branches