Feature #7027
Rebase our ikiwiki template changes on top of current upstream
50%
Description
We’re shipping two forked templates in wiki/src/templates
: page.tmpl
and rsspage.tmpl
. Since we have copied and modified these files, the upstream ones have evolved a bit. It would be good to rebase our changes on top of the current upstream ones.
Files
Subtasks
History
#1 Updated by Anonymous 2014-04-07 09:00:45
I am willing to look into this if needed.
#2 Updated by intrigeri 2014-04-07 09:12:02
Assigned: u
#3 Updated by BitingBird 2014-04-07 15:06:10
- Assignee deleted (
None)
#4 Updated by Anonymous 2014-07-08 16:49:33
- Assignee deleted (
)
#5 Updated by naar 2015-02-10 02:28:53
Sorry about that, but I didn’t get you on this point. Just to be sure, which version are you targeting here? That one:
http://source.ikiwiki.branchable.com/?p=source.git;a=blob_plain;f=templates/page.tmpl;hb=HEAD
#6 Updated by intrigeri 2015-02-10 09:00:40
> Sorry about that, but I didn’t get you on this point. Just to be sure, which version are you targeting here?
#7 Updated by naar 2015-03-03 03:22:33
- File 0001-Rebase-ikiwiki-templates-on-top-of-upstream.patch added
- File 0002-Improve-ikiwiki-s-page-tmpl-indentation.patch added
- File 0003-Compact-HTML5-conditional-markup.patch added
- Status changed from Confirmed to In Progress
- % Done changed from 0 to 50
- QA Check set to Ready for QA
0001-Rebase-ikiwiki-templates-on-top-of-upstream.patch
is the mere rebasing patch (in which I’ve also replaced these<TMPL_VAR NAME="PERCENTTRANSLATED">
with<TMPL_VAR PERCENTTRANSLATED>
since it doesn’t seem needed.0002-Improve-ikiwiki-s-page.tmpl-indentation.patch
is self-explanatory.0003-Compact-HTML5-conditional-markup.patch
, which is based on the previous one, follow on from what has been started upstream, that is compacting those<TMPL_IF HTML5>
conditional variables like so:
<TMPL_IF HTML5><nav<TMPL_ELSE><div</TMPL_IF> id="otherlanguages">
Furthermore, just to leave a note about it for the next iteration, here is a convenient snippet for an interactive merging (hitting <Return>
when the sdiff
prompt ‘%
’ is waiting for an input will display the list of available commands):
<code>
$ tmpdiff="$(mktemp)"
$ [[ -w "tmpdiff" ]] && wget --quiet --output-document=- 'http://source.ikiwiki.branchable.com/?p=source.git;a=blob_plain;f=templates/page.tmpl;hb=HEAD' > "$tmpdiff" && sdiff --output=wiki/src/templates/page.tmpl.new --ignore-blank-lines --expand-tabs --ignore-tab-expansion --width=$(tput cols) wiki/src/templates/page.tmpl "$tmpdiff"
$ srm "$tmpdiff" && unset tmpdiff
</code>
#8 Updated by intrigeri 2015-03-03 08:48:39
- Assignee set to sajolida
- Target version set to Tails_1.3.2
sajolida, do you want to take it?
#9 Updated by sajolida 2015-03-03 13:19:39
Ok.
#10 Updated by sajolida 2015-03-18 11:19:06
- Status changed from In Progress to Resolved
- Assignee deleted (
sajolida) - QA Check changed from Ready for QA to Pass
Thanks, I applied 0001-Rebase-ikiwiki-templates-on-top-of-upstream.patch
but not the other ones. As the idea of rebasing was to make the diff between upstream and our version smaller, your other two patches actually were going into the opposite direction.
I also did some more rebasing with 38f504f.
#11 Updated by BitingBird 2015-03-18 17:00:55
naar: maybe you should propose the other patches upstream?
#12 Updated by sajolida 2015-03-19 14:02:28
Yeah, I think that’s definitely true for 0003-Compact-HTML5-conditional-markup.patch
. Regarding 0002-Improve-ikiwiki-s-page-tmpl-indentation.patch
, I’m not sure whether ikiwiki has a indentation policy already, but they might be more reluctant since that would break all possibility of doing diff for other instances.
#13 Updated by BitingBird 2015-03-19 14:21:47
- Assignee set to naar
Assigning this closed ticket back to naar, otherwise he might not see this discussion.
Maybe a new ticket should be opened to track the not-merged patches?
#14 Updated by intrigeri 2015-03-19 14:27:59
BitingBird wrote:
> Assigning this closed ticket back to naar, otherwise he might not see this discussion.
He’s on the “watchers” list :)
#15 Updated by sajolida 2015-03-20 12:46:26
The patches that we proposed to push upstream contain only minor factorization in the template code, and don’t represent any maintenance burden for Tails. So that’s totally optional. That’s why I’m fine with suggesting this on a closed ticket and not creating new ones.
#16 Updated by BitingBird 2015-03-22 12:12:32
- Target version changed from Tails_1.3.2 to Tails_1.3.1