[gitg/wip/techlivezh/diff-view-clean-up: 33/33] Replace 'FILE_BODY' at the end



commit e5e8b759472f6561d26cdd4de0432eae43e03db8
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Fri Dec 20 11:42:35 2013 +0800

    Replace 'FILE_BODY' at the end
    
    It rarely happens, if 'FILE_BODY' contains placeholders, it has to be
    the last placeholder to be replaced.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720886

 libgitg/resources/diff-view-html-builder.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/resources/diff-view-html-builder.js b/libgitg/resources/diff-view-html-builder.js
index 34e08a5..c497b29 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -72,9 +72,9 @@ function diff_file(file, lnstate, data)
         */
        return exec_template(data.file_template, {
                'STAGEBUTTON': lnstate.stagebutton,
+               'FILE_STATS': file_stats,
                'FILE_PATH': file_path,
                'FILE_BODY': file_body,
-               'FILE_STATS': file_stats,
        });
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]