search tags when on click
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -105,7 +105,17 @@ defmodule MemexWeb.Components.ContextsTableComponent do | ||||
|   end | ||||
|  | ||||
|   defp get_value_for_key(:tags, %{tags: tags}, _additional_data) do | ||||
|     tags |> Enum.join(", ") | ||||
|     assigns = %{tags: tags} | ||||
|  | ||||
|     ~H""" | ||||
|     <div class="flex flex-wrap justify-center space-x-1"> | ||||
|       <%= for tag <- @tags do %> | ||||
|         <.link patch={Routes.context_index_path(Endpoint, :search, tag)} class="link"> | ||||
|           <%= tag %> | ||||
|         </.link> | ||||
|       <% end %> | ||||
|     </div> | ||||
|     """ | ||||
|   end | ||||
|  | ||||
|   defp get_value_for_key(:actions, context, %{actions: actions}) do | ||||
|   | ||||
| @@ -105,7 +105,17 @@ defmodule MemexWeb.Components.NotesTableComponent do | ||||
|   end | ||||
|  | ||||
|   defp get_value_for_key(:tags, %{tags: tags}, _additional_data) do | ||||
|     tags |> Enum.join(", ") | ||||
|     assigns = %{tags: tags} | ||||
|  | ||||
|     ~H""" | ||||
|     <div class="flex flex-wrap justify-center space-x-1"> | ||||
|       <%= for tag <- @tags do %> | ||||
|         <.link patch={Routes.note_index_path(Endpoint, :search, tag)} class="link"> | ||||
|           <%= tag %> | ||||
|         </.link> | ||||
|       <% end %> | ||||
|     </div> | ||||
|     """ | ||||
|   end | ||||
|  | ||||
|   defp get_value_for_key(:actions, note, %{actions: actions}) do | ||||
|   | ||||
| @@ -118,7 +118,17 @@ defmodule MemexWeb.Components.PipelinesTableComponent do | ||||
|   end | ||||
|  | ||||
|   defp get_value_for_key(:tags, %{tags: tags}, _additional_data) do | ||||
|     tags |> Enum.join(", ") | ||||
|     assigns = %{tags: tags} | ||||
|  | ||||
|     ~H""" | ||||
|     <div class="flex flex-wrap justify-center space-x-1"> | ||||
|       <%= for tag <- @tags do %> | ||||
|         <.link patch={Routes.pipeline_index_path(Endpoint, :search, tag)} class="link"> | ||||
|           <%= tag %> | ||||
|         </.link> | ||||
|       <% end %> | ||||
|     </div> | ||||
|     """ | ||||
|   end | ||||
|  | ||||
|   defp get_value_for_key(:actions, pipeline, %{actions: actions}) do | ||||
|   | ||||
		Reference in New Issue
	
	Block a user