Merge pull request #1322 from jackyq2015/master

UI tuning for metadata view
This commit is contained in:
Jacky 2017-11-11 09:44:12 -05:00 committed by GitHub
commit fff4fe40b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 14 deletions

View File

@ -23,17 +23,17 @@
"try-these": "If you have no data to work with, try these", "try-these": "If you have no data to work with, try these",
"sample-data": "sample data sets", "sample-data": "sample data sets",
"change-metadata-value": "Change value of metadata key", "change-metadata-value": "Change value of metadata key",
"name": "Project Name:", "name": "Project name:",
"created": "Create Time:", "created": "Create time:",
"modified": "Last Modified Time:", "modified": "Last modified time:",
"creator": "Creator:", "creator": "Creator:",
"contributors": "Contributors:", "contributors": "Contributors:",
"subject": "Subject:", "subject": "Subject:",
"description": "Description:", "description": "Description:",
"rowCount": "Row Count:", "rowCount": "Row count:",
"customMetadata": "Custom Metadata(JSON):", "customMetadata": "Custom metadata(JSON):",
"id": "Project ID:", "id": "Project ID:",
"importOptionMetadata": "Import Option Metadata(JSON):" "importOptionMetadata": "Import option metadata(JSON):"
}, },
"core-index-create": { "core-index-create": {
"create-proj": "Create Project", "create-proj": "Create Project",
@ -98,7 +98,7 @@
"core-index-open": { "core-index-open": {
"open-proj": "Open Project", "open-proj": "Open Project",
"name": "Name", "name": "Name",
"rename": "rename", "rename": "Rename",
"edit-meta-data": "About", "edit-meta-data": "About",
"creator": "Creator", "creator": "Creator",
"contributors": "Contributors", "contributors": "Contributors",

View File

@ -20,7 +20,11 @@ function EditMetadataDialog(metaData, targetRowElem) {
var td2 = tr.insertCell(2); var td2 = tr.insertCell(2);
if (key !== "modified" && key !== "rowCount" && key !== "importOptionMetadata" && key !== "id") { if (key !== "created" &&
key !== "modified" &&
key !== "rowCount" &&
key !== "importOptionMetadata" &&
key !== "id") {
$('<button class="button">').text($.i18n._('core-index')["edit"]).appendTo(td2).click(function() { $('<button class="button">').text($.i18n._('core-index')["edit"]).appendTo(td2).click(function() {
var newValue = window.prompt($.i18n._('core-index')["change-metadata-value"]+" " + key, value); var newValue = window.prompt($.i18n._('core-index')["change-metadata-value"]+" " + key, value);
if (newValue !== null) { if (newValue !== null) {

View File

@ -93,12 +93,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#projects-container > table thead th:nth-child(1) { #projects-container > table thead th:nth-child(1) {
border: 0; border: 0;
width: 1% width: 1.5%
} }
#projects-container > table thead th:nth-child(2) { #projects-container > table thead th:nth-child(2) {
border: 0; border: 0;
width: 3% width: 3.5%
} }
#projects-container > table thead th:nth-child(3) { #projects-container > table thead th:nth-child(3) {
@ -130,7 +130,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
padding: 8px padding: 8px
} }
#metadata-body tr:nth-child(even) {background: #BFDBFF} #metadata-body tr:nth-child(even) {background: #f2f2f2}
#metadata-body tr:nth-child(odd) {background: #FFF} #metadata-body tr:nth-child(odd) {background: #FFF}
#metadata-body > table { #metadata-body > table {

2
refine
View File

@ -943,7 +943,7 @@ elif [ "$OS" = "linux" ] ; then
fi fi
echo You have "$freeRam"M of free memory. echo You have "$freeRam"M of free memory.
echo You current configuration will allow to use $REFINE_MEMORY of memory. echo Your current configuration will allow to use $REFINE_MEMORY of memory.
echo OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here: echo OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here:
echo https://github.com/OpenRefine/OpenRefine/wiki/FAQ:-Allocate-More-Memory echo https://github.com/OpenRefine/OpenRefine/wiki/FAQ:-Allocate-More-Memory

View File

@ -145,10 +145,10 @@ rem --- Check free memory ---------------------------------------------
for /f "usebackq skip=1 tokens=*" %%i in (`wmic os get FreePhysicalMemory ^| findstr /r /v "^$"`) do @set /A freeRam=%%i/1024 for /f "usebackq skip=1 tokens=*" %%i in (`wmic os get FreePhysicalMemory ^| findstr /r /v "^$"`) do @set /A freeRam=%%i/1024
echo You have %freeRam%M of free memory. echo You have %freeRam%M of free memory.
echo You current configuration will allow to use %REFINE_MEMORY% of memory. echo Your current configuration will allow to use %REFINE_MEMORY% of memory.
echo OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here: echo OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here:
echo https://github.com/OpenRefine/OpenRefine/wiki/FAQ:-Allocate-More-Memory echo https://github.com/OpenRefine/OpenRefine/wiki/FAQ:-Allocate-More-Memory
echo . echo.
if not "%REFINE_MAX_FORM_CONTENT_SIZE%" == "" goto gotMaxFormContentSize if not "%REFINE_MAX_FORM_CONTENT_SIZE%" == "" goto gotMaxFormContentSize
set REFINE_MAX_FORM_CONTENT_SIZE=1048576 set REFINE_MAX_FORM_CONTENT_SIZE=1048576