Simplify q-and-a extension
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ubuntu Help App |
High
|
Daniel Holbach | ||
Bug Description
Implement !!I image detection and placement. This is the second part of bug 1430735.
Related branches
- Michael Hall: Approve on 2015-03-30
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration) on 2015-03-30
-
Diff: 4002 lines (+470/-478)15 files modifiedcontent/pages/apps.md (+18/-18)
content/pages/basic.md (+9/-9)
content/pages/scopes.md (+3/-3)
content/pages/security.md (+7/-7)
content/pages/settings.md (+7/-7)
content/pages/ui.md (+13/-13)
internals/local/q-and-a.py (+12/-19)
internals/pelicanconf.py (+1/-2)
po/de.po (+57/-57)
po/es.po (+57/-57)
po/fr.po (+57/-57)
po/help.pot (+58/-58)
po/it.po (+57/-57)
po/pt.po (+57/-57)
po/ro.po (+57/-57)
| Changed in help-app: | |
| importance: | Undecided → High |
| assignee: | nobody → Daniel Holbach (dholbach) |
| Changed in help-app: | |
| status: | New → Triaged |
| milestone: | none → 0.2 |
| Daniel Holbach (dholbach) wrote : | #1 |
| summary: |
- Implement !!I image detection and placement + Simplify q-and-a extension |
| David Planella (dpm) wrote : | #2 |
So here's what I was thinking:
1. Rename the !!T syntax to !!QA
2. Use this markdown.
### Question !!QA
This is the answer.
 Preferred:
<div class="row qa">
<div class="eight-col">
<h3 id="question"
<p>This is the answer.</p>
</div>
<div class="four-col last-col">
<img alt="Alt text" src="./
</div>
</div>
If there is no image in the question, then the whole <div class="four-col last-col"
b) Alternatively, if the above proves to be too complex, then this would also work (it would mean more manipulation in JS, but should be doable:
<div class="row qa">
<div class="eight-col">
<h3 id="question"
<p>This is the answer. <img alt="Alt text" src="./
</div>
</div>
4. Use JavaScript to do any other markup manipulation (I can help with that)
| Daniel Holbach (dholbach) wrote : | #3 |
ACK.
| Changed in help-app: | |
| status: | Triaged → In Progress |
Fix committed into lp:help-app at revision 127, scheduled for release in help-app, milestone backlog
| Changed in help-app: | |
| status: | In Progress → Fix Committed |
| Changed in help-app: | |
| status: | Fix Committed → Fix Released |

<dpm> dholbach, ok, thanks. And how about changing the local-q-and-a extension to do the following: the syntax to use it to be !!QA instead of !!T (I'm thinking of having just one), make sure the enclosing div contains the text and any images, and add the class "question" to the enclosing div? To keep things simpler, I'm thinking of having just the one !!QA instead of both !!T and !!I, and then use some JavaScript to do any additional markup changes to th
<dpm> e image, similarly to how to do on the phone. I could have a go at the JS bit