Sha256: 0b4fccf94815d4226bd5c223c683d8e1534bb1ad94fd8c98ee227fddf1602cac
Contents?: true
Size: 1.56 KB
Versions: 3
Compression:
Stored size: 1.56 KB
Contents
### Input Fields <% input_fields.each do |field| %> <% next if field['type']['ofType'] && field['type']['ofType']['name'] && field['type']['ofType']['name'].end_with?('Connection') %> <div class="field-entry"> <% next if field['name'] == "id" || field['name'].blank? %> <% if field['type']['ofType'] && !field['type']['ofType']['ofType'].nil? %> <% if !field['type']['ofType']['ofType']['ofType'].nil? %> <% @type_path = field['type']['ofType']['ofType']['ofType']['kind'] %> <% @type_name = field['type']['ofType']['ofType']['ofType']['name'] %> <% else %> <% @type_path = field['type']['ofType']['ofType']['kind'] %> <% @type_name = field['type']['ofType']['ofType']['name'] %> <% end %> <% elsif field['type']['ofType'].blank? %> <% @type_path = field['type']['kind'] %> <% @type_name = field['type']['name'] %> <% elsif field['type']['name'] == "Non-Null" || field['type']['ofType']['name'] == "Non-Null" %> <% @type_path = field['type']['ofType']['kind'] %> <% @type_name = field['type']['ofType']['name'] %> <% else %> <% @type_path = field['type']['ofType']['kind'] %> <% @type_name = field['type']['ofType']['name'] %> <% end %> <span class="field-name"><%= field['name'] %> (<a href="<%= base_url %>/<%= @type_path.downcase %>/<%= slugify.(@type_name) %>"><code><%= @type_name %></code></a>)</span> <div class="description-wrapper"> <%= field['description'] %> <% unless field['args'].nil? %> <%= include.('arguments.html', args: field['args']) %> <% end %> </div> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems