Added quick link to create new project from channel page
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
<h4 class="channel-updated">Last updated at: <%= date_format(channel.updated_at) %></h4>
|
||||
<% end %>
|
||||
|
||||
<p><a href="/video/create?channel=<%= channel.id %>">Create video project</a></p>
|
||||
|
||||
<p class="channel-description"><%= channel.description %></p>
|
||||
</div>
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
<label for="video_channel">Associated channel:</label>
|
||||
<select class="u-full-width" id="video_channel" name="video_channel" required>
|
||||
<% channels.each do |c| %>
|
||||
<option value="<%= c.id %>"><%= c.name %></option>
|
||||
<option value="<%= c.id %>" <%= 'selected' if c.id == selected_channel %>><%= c.name %></option>
|
||||
<% end %>
|
||||
</select>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user