# HG changeset patch # User durandn # Date 1475495452 -7200 # Node ID a823999cbc4256a2d68995aef1662c73f3c1f040 # Parent 92e561edff08eccf9c8e03aa561166859ffada8e added option (title_editable, default is true) to make the title uneditable in edit mode diff -r 92e561edff08 -r a823999cbc42 client/js/defaults.js --- a/client/js/defaults.js Wed Jul 27 15:40:57 2016 +0200 +++ b/client/js/defaults.js Mon Oct 03 13:50:52 2016 +0200 @@ -69,6 +69,8 @@ /* allow the edition of the user name */ user_color_editable: true, /* allow the edition of the user color */ + title_editable: true, + /* allow the edition of the renkan title */ show_user_color: true, /* show user colors in the list */ show_save_button: true, diff -r 92e561edff08 -r a823999cbc42 client/templates/scene.html --- a/client/templates/scene.html Wed Jul 27 15:40:57 2016 +0200 +++ b/client/templates/scene.html Mon Oct 03 13:50:52 2016 +0200 @@ -1,7 +1,7 @@ <% if (options.show_top_bar) { %>
- <% if (!options.editor_mode) { %> + <% if (!options.editor_mode || !options.title_editable) { %>

<%- project.get("title") || translate("Untitled project")%>

diff -r 92e561edff08 -r a823999cbc42 client/test/test-writable-simple-title-not-editable.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/test/test-writable-simple-title-not-editable.html Mon Oct 03 13:50:52 2016 +0200 @@ -0,0 +1,49 @@ + + + + + + Test de Rendu RENKAN + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +