Skip to content

Instantly share code, notes, and snippets.

Avatar

Sneha Mishra Tlazypanda

  • Mumbai
View GitHub Profile
@Tlazypanda
Tlazypanda / gist:4f944065c0bfa9c9a084a099ef3cf30c
Created Apr 11, 2020
#app/views/questions/_index.html.erb
View gist:4f944065c0bfa9c9a084a099ef3cf30c
<form id="questions_searchform" role="search" autocomplete="off" action="/post">
<div class="input-group">
<input tabindex="1" id="questions_searchform_input" type="text" name="title" aria-label="Ask your question" class="<%= "disabled " if !current_user %>form-control search-query typeahead" qryType="questions" placeholder="type your question">
@Tlazypanda
Tlazypanda / gist:10c34d3b4796c7c9a856c0659011f313
Created Apr 11, 2020
#app/views/questions/_index.html.erb
View gist:10c34d3b4796c7c9a856c0659011f313
<form id="questions_searchform" role="search" autocomplete="off"
action="/post">
<div class="input-group">
<input tabindex="1" id="questions_searchform_input" type="text" name="title" class="
<%= "disabled " if !current_user %>form-control search-query typeahead"
qryType="questions" placeholder="type your question">
<label class="questions_searchform_label"
for="questions_searchform_input">Ask question</label>
View gist:f70f0a54a702e74a30e742db8025019b
<div class="card">
<% if node.main_image %>
<a class="card-img-top img" style="overflow: hidden; height:10em;"
<% if @widget %>target="_blank"<% end %> href="<%= node.path %>">
<img src="<%= node.main_image.path(:default) alt="xyz" %>"
style="width:100%;"/>
</a>
You can’t perform that action at this time.