<%= link to: Routes.job_opening_path(@conn, :index), class: "nav-link" do %>
....other div element
<% end %>
to
<%= link to: <%= if check_workspace_activation() , do: Routes.job_opening_path(@conn, :index), else: "#" %>, class: "" do %>
...other div element
<% end %>
When I use last HTML code, I am getting following error
syntax error before: '<'
What I am missing here ? Your help will be appreciateed