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



commit c9fb5056c8fbddab9b621724b4dfe1d2b89f314f
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.

 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]