Commit ed682e26 authored by Aria Givi's avatar Aria Givi
Browse files

farbliche hinterlegung rueckgaengig gemacht, stattdessen wird ein hinweis angezeigt

parent 83cf190d
...@@ -197,9 +197,12 @@ class LanguageController extends Controller ...@@ -197,9 +197,12 @@ class LanguageController extends Controller
foreach($languageObjects as $folder => $languageObject) { foreach($languageObjects as $folder => $languageObject) {
foreach($languageObject->stringMap as $languageFileName => $languageFile) { foreach($languageObject->stringMap as $languageFileName => $languageFile) {
if($languageFileName === $fn) { if($languageFileName === $fn) {
if($changeTime <= filemtime($languageObject->filePath."/".$languageFileName)) { if($changeTime < filemtime($languageObject->filePath."/".$languageFileName)) {
unset($recentlyChangedFiles);
$changeTime = filemtime($languageObject->filePath."/".$languageFileName); $changeTime = filemtime($languageObject->filePath."/".$languageFileName);
$recentlyChangedFiles[] = $languageObject->language; $recentlyChangedFiles[] = $languageObject->language;
} else if($changeTime === filemtime($languageObject->filePath."/".$languageFileName)) {
$recentlyChangedFiles[] = $languageObject->language;
} }
foreach($languageFile as $key => $value) { foreach($languageFile as $key => $value) {
$snippets[$key][$languageObject->language] = $value; $snippets[$key][$languageObject->language] = $value;
...@@ -217,7 +220,7 @@ class LanguageController extends Controller ...@@ -217,7 +220,7 @@ class LanguageController extends Controller
} }
} }
} }
return view('languages.synoptic') return view('languages.synoptic')
->with('to', $to) # Alle vorhandenen Sprachen ->with('to', $to) # Alle vorhandenen Sprachen
->with('texts', $snippets) # Array mit Sprachsnippets ->with('texts', $snippets) # Array mit Sprachsnippets
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
--> -->
*/?> */?>
<h2>{{$filename}}</h2> <h2>{{$filename}}</h2>
<p>Eine gelb hinterlegte Spalte bedeutet, dass mindestens ein Eintrag in dieser Datei kürzlich verändert worden ist. Eine genaue Bestimmung des zuletzt veränderten Textes ist
nicht möglich. Dementsprechend müssen die Texte der anderen Spalten angepasst werden.
</p>
<form id="submit" method="POST"> <form id="submit" method="POST">
<input type="hidden" name="filename" value="{{$filename}}" /> <input type="hidden" name="filename" value="{{$filename}}" />
</form> </form>
...@@ -22,7 +25,11 @@ ...@@ -22,7 +25,11 @@
<tr> <tr>
<th>#ID</th> <th>#ID</th>
@foreach($to as $t) @foreach($to as $t)
<th>{{$t}}</th> <th>{{$t}}<br>
@if(in_array($t, $recentlyChangedFiles))
<span style="">Datei wurde vor kurzem bearbeitet.</span>
@endif
</th>
@endforeach @endforeach
</tr> </tr>
</thead> </thead>
...@@ -32,15 +39,9 @@ ...@@ -32,15 +39,9 @@
<td class="name language-name">{{$key}}</td> <td class="name language-name">{{$key}}</td>
@foreach($language as $lang => $languageValue) @foreach($language as $lang => $languageValue)
@if($languageValue !== "") @if($languageValue !== "")
@if(in_array($lang, $recentlyChangedFiles)) <td>
<td> <textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode($lang."_".$key)}}">{{$languageValue}}</textarea>
<textarea class="language-text-area" rows="1" cols="20" style="background-color: Khaki;" form="submit" name="{{base64_encode($lang."_".$key)}}">{{$languageValue}}</textarea> </td>
</td>
@else
<td>
<textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode($lang."_".$key)}}">{{$languageValue}}</textarea>
</td>
@endif
@else @else
<td> <td>
<textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode("_new_".$lang."_".$key)}}"></textarea> <textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode("_new_".$lang."_".$key)}}"></textarea>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment