forked from projects/thebadspace
added notes to locations, exports comments fix
locations needed another data point for notes to additional information about instances that aren't covered by public comments, i.e. if the site is still live, additional concerns, etc, so that's been added and the appropriate template files added also, public comments where not being included in the CSV exports, so that's been patched as well
This commit is contained in:
parent
80191a2e46
commit
ccd0a7a3a9
5 changed files with 15 additions and 9 deletions
|
@ -60,7 +60,7 @@ class ExportController extends Controller
|
|||
if ($rate * 100 >= $percent) {
|
||||
if ($type == 'mastodon') {
|
||||
//comman break teh CSV so just take them out
|
||||
$comments = str_replace(",", ";", $location->description);
|
||||
$comments = str_replace(",", ";", $location->public_comments);
|
||||
|
||||
//remove extra white space
|
||||
$comments = str_replace(["\n\r", "\n", "\r"], " ", $comments);
|
||||
|
|
|
@ -35,6 +35,7 @@ class Location extends Model
|
|||
"created_at",
|
||||
"updated_at",
|
||||
"actions_count",
|
||||
"archive_links"
|
||||
"archive_links",
|
||||
"notes",
|
||||
];
|
||||
}
|
||||
|
|
|
@ -76,8 +76,8 @@ class LocationRepository
|
|||
$location->images = json_encode($images);
|
||||
}
|
||||
|
||||
$location->name = $request->name;
|
||||
//$location->description = $request->description;
|
||||
$location->name = $request->name;
|
||||
$location->notes = $request->notes;
|
||||
$location->archive_links = $request->archive_links;
|
||||
|
||||
$result = [];
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
@csrf
|
||||
<label>Edit Location Name</label><br>
|
||||
<input type="text" name="name" value="{{$location->name}}" /><br>
|
||||
<!--
|
||||
<label>Edit Location Comments</label><br>
|
||||
<textarea name="description">{{$location->description}}</textarea><br>
|
||||
-->
|
||||
|
||||
<label>Edit Location Notes</label><br>
|
||||
<textarea name="notes">{{$location->notes}}</textarea><br>
|
||||
|
||||
<label>Edit Reference Links (comma seperated)</label><br>
|
||||
<textarea name="archive_links">{{$location->archive_links}}</textarea><br>
|
||||
<label>Edit Reference Images</label><br>
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
{{trim($comment)}}<br /><br />
|
||||
@endif
|
||||
@endforeach
|
||||
<h2>Notes</h2>
|
||||
{{$location->notes}}
|
||||
<h2>References</h2>
|
||||
<h3>Images</h3>
|
||||
@if($images != null)
|
||||
|
@ -54,8 +56,11 @@
|
|||
|
||||
<br />
|
||||
Heat Rating is the percentage of <a href="/about#how">Current Sources</a> that have taken action against an instance. The higher the number of Sources that have silenced and/or suspended an instance, the higher the Heat Rating.
|
||||
|
||||
<br />
|
||||
<br />UPDATED : {{$updated}}
|
||||
<br />
|
||||
<br />
|
||||
|
||||
</article>
|
||||
</section>
|
||||
@endsection
|
Loading…
Reference in a new issue