add placeholder for empty notes and contexts
This commit is contained in:
		| @@ -1,8 +1,11 @@ | ||||
| <div | ||||
|   :if={@context.content} | ||||
|   id={"show-context-content-#{@context.id}"} | ||||
|   class="input input-primary h-128 min-h-128 inline-block whitespace-pre-wrap overflow-x-hidden overflow-y-auto resize-y" | ||||
|   class="inline-block overflow-y-auto overflow-x-hidden whitespace-pre-wrap resize-y input input-primary h-128 min-h-128" | ||||
|   phx-update="ignore" | ||||
|   readonly | ||||
|   phx-no-format | ||||
| ><p class="inline"><%= display_links(@context) %></p></div> | ||||
| <div :if={!@context.content} class="text-sm italic text-center text-gray-600"> | ||||
|   <%= gettext("(This context is empty)") %> | ||||
| </div> | ||||
|   | ||||
| @@ -1,8 +1,11 @@ | ||||
| <div | ||||
|   :if={@note.content} | ||||
|   id={"show-note-content-#{@note.id}"} | ||||
|   class="input input-primary h-128 min-h-128 inline-block whitespace-pre-wrap overflow-x-hidden overflow-y-auto resize-y" | ||||
|   class="inline-block overflow-y-auto overflow-x-hidden whitespace-pre-wrap resize-y input input-primary h-128 min-h-128" | ||||
|   phx-update="ignore" | ||||
|   readonly | ||||
|   phx-no-format | ||||
| ><p class="inline"><%= display_links(@note) %></p></div> | ||||
| <div :if={!@note.content} class="text-sm italic text-center text-gray-600"> | ||||
|   <%= gettext("(This note is empty)") %> | ||||
| </div> | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| <div | ||||
|   :if={@pipeline.description} | ||||
|   id={"show-pipeline-description-#{@pipeline.id}"} | ||||
|   class="input input-primary h-32 min-h-32 inline-block whitespace-pre-wrap overflow-x-hidden overflow-y-auto resize-y" | ||||
|   class="inline-block overflow-y-auto overflow-x-hidden h-32 whitespace-pre-wrap resize-y input input-primary min-h-32" | ||||
|   phx-update="ignore" | ||||
|   readonly | ||||
|   phx-no-format | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| <div | ||||
|   :if={@step.content} | ||||
|   id={"show-step-content-#{@step.id}"} | ||||
|   class="input input-primary h-32 min-h-32 inline-block whitespace-pre-wrap overflow-x-hidden overflow-y-auto resize-y" | ||||
|   class="inline-block overflow-y-auto overflow-x-hidden h-32 whitespace-pre-wrap resize-y input input-primary min-h-32" | ||||
|   phx-update="ignore" | ||||
|   readonly | ||||
|   phx-no-format | ||||
|   | ||||
		Reference in New Issue
	
	Block a user