Fix newlines in project descriptions
This commit is contained in:
parent
774f2754a0
commit
5e10d53c36
|
@ -7,7 +7,7 @@ class Project{
|
||||||
public function __construct($id, $name, $descr, $owner, $owneruname, $active){
|
public function __construct($id, $name, $descr, $owner, $owneruname, $active){
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->descr = $descr;
|
$this->descr = explode("\n", $descr);
|
||||||
$this->owner = $owner;
|
$this->owner = $owner;
|
||||||
$this->owneruname = $owneruname;
|
$this->owneruname = $owneruname;
|
||||||
$this->active = $active;
|
$this->active = $active;
|
||||||
|
|
|
@ -89,7 +89,7 @@ $projects = array_values(array_filter(
|
||||||
<div class="event-info">
|
<div class="event-info">
|
||||||
<h3 class="no-chin"><?= $project->getName() . " (ID: " . $projectID . ")"; ?></h3>
|
<h3 class="no-chin"><?= $project->getName() . " (ID: " . $projectID . ")"; ?></h3>
|
||||||
<p class="subnote"><?= 'Organisert av: ' . $project->getOwner(); ?></p>
|
<p class="subnote"><?= 'Organisert av: ' . $project->getOwner(); ?></p>
|
||||||
<p><?= $project->getDescription(); ?></p>
|
<p><?= implode($event->getDescription(), "</p>\n<p>"); ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="event-actions">
|
<div class="event-actions">
|
||||||
|
|
Loading…
Reference in New Issue