Link in the Star Wars example

Link in the Star Wars example

Welcome to GraphQL Elixir!

A better way to build blazing fast APIs.

Hello World Example

        /graphql/hello?query={greeting}

        /graphql/hello?query={greeting(name:"Joe")}

Simple Blog Example

        /graphql/blog?query={article(id:"1"){id,title,body,author{name}}}

        /graphql/blog?query={feed{title,body},article(id:1){id,title,body,author{name}}}

Simple Ecto Example

          /graphql/ecto?query={greeting(id:2)}

          /graphql/ecto?query={greeting(name:"Garrett1")}

Star Wars Example

          /graphql/starwars?query={hero{name}}

          /graphql/starwars?query={hero(episode:EMPIRE){name}}

Resources

        GraphQL Plug Hex Package

        GraphQL Plug Docs

        GraphQL Plug Source

        GraphQL Core Hex Package

        GraphQL Core Docs

        GraphQL Core Source

        GraphQL Spec

Help

        Erlang channel on the GraphQL Slack

Welcome to GraphQL Elixir!

A better way to build blazing fast APIs.

Hello World Example

        /graphql/hello?query={greeting}

        /graphql/hello?query={greeting(name:"Joe")}

Simple Blog Example

        /graphql/blog?query={article(id:"1"){id,title,body,author{name}}}

        /graphql/blog?query={feed{title,body},article(id:1){id,title,body,author{name}}}

Ecto Example

          /graphql/ecto?query={greeting(id:2)}

          /graphql/ecto?query={greeting(name:"Garrett1")}

Resources

        GraphQL Plug Hex Package

        GraphQL Plug Docs

        GraphQL Plug Source

        GraphQL Core Hex Package

        GraphQL Core Docs

        GraphQL Core Source

        GraphQL Spec

Help

        Erlang channel on the GraphQL Slack


Remove unused view.

Remove unused view.

  <% world = @state.world %>
  <% width = world.width %>
  <% height = world.height %>

    <%= content_tag :svg, width: "100%", height: "100%", style: "flex: 1;", viewBox: "0 0 #{width} #{height}" do %>
      <%= content_tag :rect, "", y: 0, x: 0, width: width, height: height, fill: "lightgrey" %>

      <%= for snake <- world.snakes, {point, index} <- Enum.with_index(snake.coords, 1) do %>
        <%=
        content_tag :rect, "",
        y: point.y,
        x: point.x,
        width: 1,
        height: 1,
        fill: snake.color,
        fill_opacity: 1 - index / length(snake.coords) + 0.3
        %>
      <% end %>

      <%= for food <- world.food do %>
        <%=
        content_tag :rect, "",
        y: food.y,
        x: food.x,
        width: 1,
        height: 1,
        fill: :green
        %>
      <% end %>
    <% end %>

          status

          <%= @state.status %>

      <%= content_tag :pre, Apex.Format.format(%{@state|hist: nil}, color: false) %>


New ad text (AMOOMA ad).

New ad text (AMOOMA ad).

  <%= gettext("Ad") %>

AMOOMA GmbH

Phoenix Framework, Ruby on Rails und WebPerformance Consulting und Training durch das vutuv Entwicklerteam.

  https://www.amooma.de

  <%= gettext("Ad") %>

Fire TV Stick

Mit einer riesigen Auswahl an Filmen und Serienepisoden.

EUR 39,99

  https://www.amazon.de


Update font-awesome to 4.5.0

Update font-awesome to 4.5.0

<!DOCTYPE html>

    <title><%= html_title(assigns) %></title>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="<%= PhoenixStarter.Meta.html_description %>">
    <meta name="author" content="">
    <meta property="og:image" content="<%= og_image_url(assigns) %>" />

    <%= if Guardian.Plug.current_token(@conn) do %>
      <meta name="guardian_token" content="<%= Guardian.Plug.current_token(@conn) %>">
    <% end %>

    <link href="https://cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/css/tether.min.css" rel="stylesheet">
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-xWeRKjzyg6bep9D1AsHzUPEWHbWMzlRc84Z0aG+tyms= sha512-mGIRU0bcPaVjr7BceESkC37zD6sEccxE+RJyQABbbKNe83Y68+PyPM5nrE1zvbQZkSHDCJEtnAcodbhlq2/EkQ==" crossorigin="anonymous">
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">

    <link href="<%= static_path(@conn, "/css/app.css") %>" rel="stylesheet">

    <%= render PhoenixStarter.SharedView, "sidebar.html", conn: @conn, current_user: @current_user %>

        <%= render "impersonation.html", conn: @conn %>
        <%= render "header.html", conn: @conn, current_user: @current_user %>
        <%= render "flash.html", conn: @conn %>

        <%= render @view_module, @view_template, assigns %>

    <%= case Mix.env do %>
      <% :prod -> %>
        <%= render PhoenixStarter.SharedView, "tracking_prod.html" %>
      <% :stag -> %>
      <% :dev -> %>
      <% :test -> %>
    <% end %>

<!DOCTYPE html>

    <title><%= html_title(assigns) %></title>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="<%= PhoenixStarter.Meta.html_description %>">
    <meta name="author" content="">
    <meta property="og:image" content="<%= og_image_url(assigns) %>" />

    <%= if Guardian.Plug.current_token(@conn) do %>
      <meta name="guardian_token" content="<%= Guardian.Plug.current_token(@conn) %>">
    <% end %>

    <link href="https://cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/css/tether.min.css" rel="stylesheet">
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-xWeRKjzyg6bep9D1AsHzUPEWHbWMzlRc84Z0aG+tyms= sha512-mGIRU0bcPaVjr7BceESkC37zD6sEccxE+RJyQABbbKNe83Y68+PyPM5nrE1zvbQZkSHDCJEtnAcodbhlq2/EkQ==" crossorigin="anonymous">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

    <link href="<%= static_path(@conn, "/css/app.css") %>" rel="stylesheet">

    <%= render PhoenixStarter.SharedView, "sidebar.html", conn: @conn, current_user: @current_user %>

        <%= render "impersonation.html", conn: @conn %>
        <%= render "header.html", conn: @conn, current_user: @current_user %>
        <%= render "flash.html", conn: @conn %>

        <%= render @view_module, @view_template, assigns %>

    <%= case Mix.env do %>
      <% :prod -> %>
        <%= render PhoenixStarter.SharedView, "tracking_prod.html" %>
      <% :stag -> %>
      <% :dev -> %>
      <% :test -> %>
    <% end %>


Display links for not-opened pages

Display links for not-opened pages

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>aelita</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

aelita

        <%= if controller_module(@conn) == Elixir.Aelita2.ProjectController do %>
        Repositories
        <% else %>
        <%= link "Repositories", to: project_path(@conn, :index), class: "tab" %>
        <% end %>
        <%= if controller_module(@conn) == Elixir.Aelita2.PageController do %>
        About
        <% else %>
        <%= link "About", to: page_path(@conn, :index), class: "tab" %>
        <% end %>

      <%= render @view_module, @view_template, assigns %>

This service is provided for free on a best-effort basis.

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>aelita</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

aelita

        <%= if controller_module(@conn) == Elixir.Aelita2.ProjectController do %>
        Repositories
        <% else %>
        <% link "Repositories", to: project_path(@conn, :index), class: "tab" %>
        <% end %>
        <%= if controller_module(@conn) == Elixir.Aelita2.PageController do %>
        About
        <% else %>
        <% link "About", to: page_path(@conn, :index), class: "tab" %>
        <% end %>

      <%= render @view_module, @view_template, assigns %>

This service is provided for free on a best-effort basis.


app.html.eex

app.html.eex

use `render/3` in app.html.eex rather than `@inner`

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Hello Phoenix!</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

Get Started

<%= get_flash(@conn, :info) %>

<%= get_flash(@conn, :error) %>

      <%= render @view_module, @view_template, assigns %>

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Hello Phoenix!</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

Get Started

<%= get_flash(@conn, :info) %>

<%= get_flash(@conn, :error) %>

      <%= @inner %>


RemoteRetro logo links back to root

RemoteRetro logo links back to root


Fix typo in privacy policy

Fix typo in privacy policy

Datenschutzerklärung

  Hier erfährst du, wie deine Daten verarbeitet werden.

Diese Datenschutzerklärung legt offen, was mit den von dieser Website erhobenen Daten geschieht. Sie richtet sich nach der <%= link "Europäischen Datenschutz-Grundverordnung (DSGVO)", to: "https://dsgvo-gesetz.de" %>.

1. Verantwortliche

    Verantwortlich im Sinne des <%= link "Art. 4 Abs. 7", to: "https://dsgvo-gesetz.de/art-4-dsgvo/" %> der DSGVO ist der Landesausschuss “Jugend musiziert” Nord- und Osteuropa. Ein Formular zur Kontaktaufnahme findest du auf der Seite <%= link "\"Kontakt\"", to: page_path(@conn, :contact) %>.

2. Welche Daten werden erhoben?

Bei der digitalen Anmeldung für das jeweilige Wettbewerbsjahr werden von den Teilnehmenden folgende Daten erhoben:

Persönliche Daten: Vor- und Familienname, Geburtsdatum

Kontaktdaten: Telefonnummer, E-Mailadresse

Wettbewerbsdaten: Kategorie, Instrument, Vorspielprogramm

Im Laufe des Wettbewerbs werden die Wettbewerbsdaten vom jeweiligen Organisationsteam um folgende Punkte ergänzt:

Auftrittszeit und -ort

Ergebnisse (Punkte und Prädikate)

Außerdem können während des Wettbewerbs vom jeweiligen Träger Bild- und Tondaten (z.B. Fotografien oder Videoaufnahmen) erhoben werden.

3. Warum werden diese Daten benötigt?

Die obenstehenden persönlichen Daten sowie Wettbewerbsdaten sind notwendig, um die Wettbewerbe “Jugend musiziert” und “Kinder musizieren” zu planen und durchzuführen. Die Kontaktdaten benötigen wir, um die Teilnehmenden bezüglich Anmeldung, Auftritt oder anderen Bereichen des Wettbewerbs zu kontaktieren. Bild- und Tondaten werden für die Berichterstattung und Dokumentation benötigt, um den öffentlichen und transparenten Charakter des Wettbewerbs zu wahren. Rechtsgrundlage hierfür ist <%= link "Art. 6 Abs. 1 lit. b und f", to: "https://dsgvo-gesetz.de/art-6-dsgvo/" %> der DSGVO.

4. Weitergabe von Daten an Dritte

Die erhobenen Daten werden nur an solche Dritte weitergegeben, die direkt an der Durchführung des jeweiligen Wettbewerbs beteiligt sind, wie z.B. der Jury und dem Organisationsteam.

Bei einer Weiterleitung zum Bundeswettbewerb werden die erhobenen Daten an den dortigen Träger (Deutsche Musikrat Projektgesellschaft mbH) weitergegeben.

Die unter (2) genannten Daten werden nicht an Dritte außerhalb des Wettbewerbs “Jugend musiziert” weitergegeben.

5. Aufbewahrung der Daten

Für Zwecke der Dokumentation, Statistik sowie Unterstützung bei späteren Anmeldungen werden die unter (2) genannten Daten auch über das Wettbewerbsjahr hinaus aufbewahrt. Rechtsgrundlage hierfür ist <%= link "Art. 6 Abs. 1 lit. b und f", to: "https://dsgvo-gesetz.de/art-6-dsgvo/" %> der DSGVO.

6. Inhalte von Dritten

Auf dieser Website setzen wir Karten (Google Maps) sowie Schriftarten (Google Fonts) des Anbieters Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA, ein. Hierfür besteht ein berechtigtes Interesse im Sinne des <%= link "Art. 6 Abs. 1 lit. f", to: "https://dsgvo-gesetz.de/art-6-dsgvo/" %> der DSGVO. Die Einbindung erfolgt durch einen Serveraufruf, bei dem die IP-Adresse des Besuchers an Google übertragen wird. Die Verarbeitung dieser unterliegt der <%= link "Datenschutzerklärung von Google", to: "https://www.google.com/policies/privacy/" %>.

7. Deine Rechte

Laut DSGVO hast du unter anderem das Recht, jederzeit und unentgeltlich

anzufragen, ob und welche personenbezogenen Daten verarbeitet werden (<%= link "Art. 15", to: "https://dsgvo-gesetz.de/art-15-dsgvo/" %>)

unrichtige personenbezogener Daten korrigieren zu lassen (<%= link "Art. 16", to: "https://dsgvo-gesetz.de/art-16-dsgvo/" %>)

die Löschung von personenbezogenen Daten zu verlangen, sofern die Verarbeitung nicht mehr erforderlich ist (<%= link "Art. 17", to: "https://dsgvo-gesetz.de/art-17-dsgvo/" %>)

einen Auszug deiner personenbezogenen Daten zu verlangen (<%= link "Art. 20", to: "https://dsgvo-gesetz.de/art-20-dsgvo/" %>)

Außerdem hast du das Recht auf Beschwerde bei einer <%= link "Aufsichtsbehörde", to: "https://www.bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html" %>, wenn du der Ansicht bist, dass die Verarbeitung deiner personenbezogenen Daten gegen die DSGVO verstößt.

8. Änderungen

Sollten wir Änderungen an dieser Datenschutzerklärung vornehmen, die eine Verarbeitung deiner Daten außerhalb obengenannter Zwecke vorsieht, so werden wir dich hierüber informieren und deine Einwilligung einholen, falls dies rechtlich erforderlich ist.

Stand: 1. November 2018

Datenschutzerklärung

  Hier erfährst du, wie deine Daten verarbeitet werden.

Diese Datenschutzerklärung legt offen, was mit den von dieser Website erhobenen Daten geschieht. Sie richtet sich nach der <%= link "Europäischen Datenschutz-Grundverordnung (DSGVO)", to: "https://dsgvo-gesetz.de" %>.

1. Verantwortliche

    Verantwortlich im Sinne des <%= link "Art. 4 Abs. 7", to: "https://dsgvo-gesetz.de/art-4-dsgvo/" %> der DSGVO ist der Landesausschuss “Jugend musiziert” Nord- und Osteuropa. Ein Formular zur Kontaktaufnahme findest du auf der Seite <%= link "\"Kontakt\"", to: page_path(@conn, :contact) %>.

2. Welche Daten werden erhoben?

Bei der digitalen Anmeldung für das jeweilige Wettbewerbsjahr werden von den Teilnehmenden folgende Daten erhoben:

Persönliche Daten: Vor- und Familienname, Geburtsdatum

Kontaktdaten: Telefonnummer, E-Mailadresse

Wettbewerbsdaten: Kategorie, Instrument, Vorspielprogramm

Im Laufe des Wettbewerbs werden die Wettbewerbsdaten vom jeweiligen Organisationsteam um folgende Punkte ergänzt:

Auftrittszeit und -ort

Ergebnisse (Punkte und Prädikate)

Außerdem können während des Wettbewerbs vom jeweiligen Träger Bild- und Tondaten (z.B. Fotografien oder Videoaufnahmen) erhoben werden.

3. Warum werden diese Daten benötigt?

Die obenstehenden persönlichen Daten sowie Wettbewerbsdaten sind notwendig, um die Wettbewerbe “Jugend musiziert” und “Kinder musizieren” zu planen und durchzuführen. Die Kontaktdaten benötigen wir, um die Teilnehmenden bezüglich Anmeldung, Auftritt oder anderen Bereichen des Wettbewerbs zu kontaktieren. Bild- und Tondaten werden für die Berichterstattung und Dokumentation benötigt, um den öffentlichen und transparenten Charakters des Wettbewerbs zu wahren. Rechtsgrundlage hierfür ist <%= link "Art. 6 Abs. 1 lit. b und f", to: "https://dsgvo-gesetz.de/art-6-dsgvo/" %> der DSGVO.

4. Weitergabe von Daten an Dritte

Die erhobenen Daten werden nur an solche Dritte weitergegeben, die direkt an der Durchführung des jeweiligen Wettbewerbs beteiligt sind, wie z.B. der Jury und dem Organisationsteam.

Bei einer Weiterleitung zum Bundeswettbewerb werden die erhobenen Daten an den dortigen Träger (Deutsche Musikrat Projektgesellschaft mbH) weitergegeben.

Die unter (2) genannten Daten werden nicht an Dritte außerhalb des Wettbewerbs “Jugend musiziert” weitergegeben.

5. Aufbewahrung der Daten

Für Zwecke der Dokumentation, Statistik sowie Unterstützung bei späteren Anmeldungen werden die unter (2) genannten Daten auch über das Wettbewerbsjahr hinaus aufbewahrt. Rechtsgrundlage hierfür ist <%= link "Art. 6 Abs. 1 lit. b und f", to: "https://dsgvo-gesetz.de/art-6-dsgvo/" %> der DSGVO.

6. Inhalte von Dritten

Auf dieser Website setzen wir Karten (Google Maps) sowie Schriftarten (Google Fonts) des Anbieters Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA, ein. Hierfür besteht ein berechtigtes Interesse im Sinne des <%= link "Art. 6 Abs. 1 lit. f", to: "https://dsgvo-gesetz.de/art-6-dsgvo/" %> der DSGVO. Die Einbindung erfolgt durch einen Serveraufruf, bei dem die IP-Adresse des Besuchers an Google übertragen wird. Die Verarbeitung dieser unterliegt der <%= link "Datenschutzerklärung von Google", to: "https://www.google.com/policies/privacy/" %>.

7. Deine Rechte

Laut DSGVO hast du unter anderem das Recht, jederzeit und unentgeltlich

anzufragen, ob und welche personenbezogenen Daten verarbeitet werden (<%= link "Art. 15", to: "https://dsgvo-gesetz.de/art-15-dsgvo/" %>)

unrichtige personenbezogener Daten korrigieren zu lassen (<%= link "Art. 16", to: "https://dsgvo-gesetz.de/art-16-dsgvo/" %>)

die Löschung von personenbezogenen Daten zu verlangen, sofern die Verarbeitung nicht mehr erforderlich ist (<%= link "Art. 17", to: "https://dsgvo-gesetz.de/art-17-dsgvo/" %>)

einen Auszug deiner personenbezogenen Daten zu verlangen (<%= link "Art. 20", to: "https://dsgvo-gesetz.de/art-20-dsgvo/" %>)

Außerdem hast du das Recht auf Beschwerde bei einer <%= link "Aufsichtsbehörde", to: "https://www.bfdi.bund.de/DE/Infothek/Anschriften_Links/anschriften_links-node.html" %>, wenn du der Ansicht bist, dass die Verarbeitung deiner personenbezogenen Daten gegen die DSGVO verstößt.

8. Änderungen

Sollten wir Änderungen an dieser Datenschutzerklärung vornehmen, die eine Verarbeitung deiner Daten außerhalb obengenannter Zwecke vorsieht, so werden wir dich hierüber informieren und deine Einwilligung einholen, falls dies rechtlich erforderlich ist.

Stand: 1. November 2018


Heroku test

Heroku test

<link rel="stylesheet" type="text/css" href="/css/l2-user.css">
<link rel="stylesheet" type="text/css" href="/css/leaflet.css">

<span name="entity_ws_uuid" content="<%= @entity_ws_uuid %>">
<l2-user-main></l2-user-main>


add chat route

add chat route

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Swuber</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

	      <%= link "Your Location", to: map_path(@conn, :index) %>

              <%= link "Register", to: user_path(@conn, :new) %>

              <%= link "Chat with others", to: chat_path(@conn, :index) %>

<%= get_flash(@conn, :info) %>

<%= get_flash(@conn, :error) %>

        <%= render @view_module, @view_template, assigns %>

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Swuber</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

	      <%= link "Your Location", to: map_path(@conn, :index) %>

              <%= link "Register", to: user_path(@conn, :new) %>

<%= get_flash(@conn, :info) %>

<%= get_flash(@conn, :error) %>

        <%= render @view_module, @view_template, assigns %>


Add links to homepage: add player, list games.

Phoenix Poker

  <%= if @current_user do %>

Welcome, <%= @current_user.name %>!

    <img src="<%= @current_user.avatar %>" class="img-circle"/>
    <%= link "Logout", to: auth_path(@conn, :delete), method: :delete, class: "btn btn-danger" %>

    <%= link "Add Player", to: player_path(@conn, :new) %>
    |
    <%= link "Game Nights", to: game_night_path(@conn, :index) %>
  <% else %>

      Sign in with GitHub

      Sign in with Facebook

      Sign in with Google

      Sign in with Twitter

  <% end %>

Phoenix Poker

  <%= if @current_user do %>

Welcome, <%= @current_user.name %>!

    <img src="<%= @current_user.avatar %>" class="img-circle"/>
    <%= link "Logout", to: auth_path(@conn, :delete), method: :delete, class: "btn btn-danger" %>

  <% else %>

      Sign in with GitHub

      Sign in with Facebook

      Sign in with Google

      Sign in with Twitter

  <% end %>


Basic raga list

Basic raga list

Rāgas

Title

Time

Chakra

Thaat

<%= for raga <- @ragas do %>
    <tr data-time="<%= raga.time %>" data-thaat="<%= raga.thaat %>">

        <%= link raga.title, to: "/ragas/#{raga.id}" %>

        <%= link raga.time || "", to: "#" %>

      <td class="chakra" data-sort-value="<%# raga.chakra.present? ? raga.chakra.split("_").last : "zzz" %>">
        <%# image if chakra is there %>

        <%= link raga.thaat || "", to: "#" %>

        <%# spotify / youtube icons %>

<% end %>

Listing ragas

      Title
      Thaat
      Ascending scale
      Descending scale
      Pakad
      Drone
      Samvaadi
      Vaadi
      Time
      Chakra
      Spotify playlist url
      Description
      Slug

<%= for raga <- @ragas do %>

      <%= raga.title %>
      <%= raga.thaat %>
      <%= raga.ascending_scale %>
      <%= raga.descending_scale %>
      <%= raga.pakad %>
      <%= raga.drone %>
      <%= raga.samvaadi %>
      <%= raga.vaadi %>
      <%= raga.time %>
      <%= raga.chakra %>
      <%= raga.spotify_playlist_url %>
      <%= raga.description %>
      <%= raga.slug %>

        <%= link "Show", to: raga_path(@conn, :show, raga), class: "btn btn-default btn-xs" %>
        <%= link "Edit", to: raga_path(@conn, :edit, raga), class: "btn btn-default btn-xs" %>
        <%= link "Delete", to: raga_path(@conn, :delete, raga), method: :delete, class: "btn btn-danger btn-xs" %>

<% end %>

<%= link "New raga", to: raga_path(@conn, :new) %>


added skeleton chord blocks

added skeleton chord blocks

added skeleton premade chord and play chord progression blocks to the motif section of the music drawer

<category name="Music">
  <category name="Actions">
    <block type="sync_to_parent">
      <value name="PARENT">
        <block type="text">
          <field name="TEXT">walle</field>
        </block>
      </value>
    </block>
    <!-- <block type="set_tempo"> -->
    <block type="cue">
      <value name="MOTIF">
        <block type="text">
          <field name="TEXT">melody</field>
        </block>
      </value>
    </block>
    <block type="loop">
      <value name="MOTIF">
        <block type="text">
          <field name="TEXT">melody</field>
        </block>
      </value>
    </block>
    <block type="stop_sound">
    </block>
    <block type="set_volume">
      <value name="VOLUME">
        <block type="math_number">
          <field name="NUM">50</field>
        </block>
      </value>
    </block>
    <block type="set_tempo">
      <value name="TEMPO">
        <block type="math_number">
          <field name="NUM">120</field>
        </block>
      </value>
    </block>
    <block type="set_synth"></block>
  </category>
  <category name="Motifs">
    <block type="defmotif">
      <value name="NAME">
        <block type="text">
          <field name="TEXT">melody</field>
        </block>
      </value>
    </block>
    <block type="play_synth">
      <value name="NOTES">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="BEATS">
        <block type="math_number">
          <field name="NUM">2</field>
        </block>
      </value>
    </block>
    <block type="chord"></block>

    <block type="premade_chord">
      <field name="NAME">Premade chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
    </block>

     <block type="play_chord_progression">
       <field name="NAME">progression</field>
       <statement name="DO"></statement>
     </block>

    <block type="trigger_drum"> </block>
    <block type="rest">
      <value name="AMOUNT">
        <block type="math_number">
          <field name="NUM">2</field>
        </block>
      </value>
    </block>
    <block type="wait_for"></block>
    <block type="send">
      <value name="msg">
        <block type="text">
          <field name="TEXT">hello</field>
        </block>
      </value>
      <value name="to">
        <block type="text">
          <field name="TEXT">walle</field>
        </block>
      </value>
    </block>
    <block type="with_fx"></block>
  </category>

  <category name="Examples">
      <!-- A Minor chord -->
   <block type="premade_chord">
      <field name="NAME">A Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
    </block>

    <!-- B Minor chord -->
   <block type="premade_chord">
      <field name="NAME">B Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">F#4</field>
        </block>
      </value>
    </block>

    <!-- C Minor chord -->
   <block type="premade_chord">
      <field name="NAME">C Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">D#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
    </block>

    <!-- D Minor chord -->
   <block type="premade_chord">
      <field name="NAME">D Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">F4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
    </block>

    <!-- E Minor chord -->
   <block type="premade_chord">
      <field name="NAME">E Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
    </block>

    <!-- F Minor chord -->
   <block type="premade_chord">
      <field name="NAME">F Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">F4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">G#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
    </block>

    <!-- G Minor chord -->
   <block type="premade_chord">
      <field name="NAME">G Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">A#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
    </block>

    <!-- A Major chord -->
   <block type="premade_chord">
      <field name="NAME">A Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">C#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
    </block>

    <!-- B Major chord -->
   <block type="premade_chord">
      <field name="NAME">B Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">D#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">F#4</field>
        </block>
      </value>
    </block>

    <!-- C Major chord -->
   <block type="premade_chord">
      <field name="NAME">C Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
    </block>

    <!-- D Major chord -->
   <block type="premade_chord">
      <field name="NAME">D Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">F#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
    </block>

    <!-- E Major chord -->
   <block type="premade_chord">
      <field name="NAME">E Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">G#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
    </block>

    <!-- F Major chord -->
   <block type="premade_chord">
      <field name="NAME">F Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">F4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
    </block>

    <!-- G Major chord -->
   <block type="premade_chord">
      <field name="NAME">G Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
    </block>

    <!-- Play 50s Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">50's Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Pachelbel Canon Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Pachelbel Canon Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">B Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">F#4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Sweet Home Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Sweet Home Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Descending Flamenco Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Descending Flamenco Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Smoke on the Water Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Smoke on the Water Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">A Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">A4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">E4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Don’t Stop Believing Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Don’t Stop Believing Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Don’t Stop Believing (Rearranged) Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Don’t Stop Believing Progression (Rearrangement)</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Good Love Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Good Love Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

  </category>
</category>

<category name="Music">
  <category name="Actions">
    <block type="sync_to_parent">
      <value name="PARENT">
        <block type="text">
          <field name="TEXT">walle</field>
        </block>
      </value>
    </block>
    <!-- <block type="set_tempo"> -->
    <block type="cue">
      <value name="MOTIF">
        <block type="text">
          <field name="TEXT">melody</field>
        </block>
      </value>
    </block>
    <block type="loop">
      <value name="MOTIF">
        <block type="text">
          <field name="TEXT">melody</field>
        </block>
      </value>
    </block>
    <block type="stop_sound">
    </block>
    <block type="set_volume">
      <value name="VOLUME">
        <block type="math_number">
          <field name="NUM">50</field>
        </block>
      </value>
    </block>
    <block type="set_tempo">
      <value name="TEMPO">
        <block type="math_number">
          <field name="NUM">120</field>
        </block>
      </value>
    </block>
    <block type="set_synth"></block>
  </category>
  <category name="Motifs">
    <block type="defmotif">
      <value name="NAME">
        <block type="text">
          <field name="TEXT">melody</field>
        </block>
      </value>
    </block>
    <block type="play_synth">
      <value name="NOTES">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="BEATS">
        <block type="math_number">
          <field name="NUM">2</field>
        </block>
      </value>
    </block>
    <block type="chord"></block>

    <block type="trigger_drum"> </block>
    <block type="rest">
      <value name="AMOUNT">
        <block type="math_number">
          <field name="NUM">2</field>
        </block>
      </value>
    </block>
    <block type="wait_for"></block>
    <block type="send">
      <value name="msg">
        <block type="text">
          <field name="TEXT">hello</field>
        </block>
      </value>
      <value name="to">
        <block type="text">
          <field name="TEXT">walle</field>
        </block>
      </value>
    </block>
    <block type="with_fx"></block>
  </category>

  <category name="Examples">
      <!-- A Minor chord -->
   <block type="premade_chord">
      <field name="NAME">A Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
    </block>

    <!-- B Minor chord -->
   <block type="premade_chord">
      <field name="NAME">B Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">F#4</field>
        </block>
      </value>
    </block>

    <!-- C Minor chord -->
   <block type="premade_chord">
      <field name="NAME">C Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">D#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
    </block>

    <!-- D Minor chord -->
   <block type="premade_chord">
      <field name="NAME">D Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">F4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
    </block>

    <!-- E Minor chord -->
   <block type="premade_chord">
      <field name="NAME">E Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
    </block>

    <!-- F Minor chord -->
   <block type="premade_chord">
      <field name="NAME">F Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">F4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">G#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
    </block>

    <!-- G Minor chord -->
   <block type="premade_chord">
      <field name="NAME">G Minor chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">A#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
    </block>

    <!-- A Major chord -->
   <block type="premade_chord">
      <field name="NAME">A Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">C#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
    </block>

    <!-- B Major chord -->
   <block type="premade_chord">
      <field name="NAME">B Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">D#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">F#4</field>
        </block>
      </value>
    </block>

    <!-- C Major chord -->
   <block type="premade_chord">
      <field name="NAME">C Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
    </block>

    <!-- D Major chord -->
   <block type="premade_chord">
      <field name="NAME">D Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">F#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
    </block>

    <!-- E Major chord -->
   <block type="premade_chord">
      <field name="NAME">E Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">E4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">G#4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
    </block>

    <!-- F Major chord -->
   <block type="premade_chord">
      <field name="NAME">F Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">F4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">A4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">C4</field>
        </block>
      </value>
    </block>

    <!-- G Major chord -->
   <block type="premade_chord">
      <field name="NAME">G Major chord</field>
      <value name="Note1">
        <block type="text">
          <field name="TEXT">G4</field>
        </block>
      </value>
      <value name="Note2">
        <block type="text">
          <field name="TEXT">B4</field>
        </block>
      </value>
      <value name="Note3">
        <block type="text">
          <field name="TEXT">D4</field>
        </block>
      </value>
    </block>

    <!-- Play 50s Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">50's Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Pachelbel Canon Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Pachelbel Canon Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">B Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">F#4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Sweet Home Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Sweet Home Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Descending Flamenco Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Descending Flamenco Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Smoke on the Water Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Smoke on the Water Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">A Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">A4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">E4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Don’t Stop Believing Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Don’t Stop Believing Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Don’t Stop Believing (Rearranged) Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Don’t Stop Believing Progression (Rearrangement)</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">E Minor chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">B4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

    <!-- Play Good Love Chord Progression -->
    <block type="play_chord_progression">
       <field name="NAME">Good Love Progression</field>
       <statement name="DO">
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">G Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">G4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">B4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">D4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">D Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">D4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">F#4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">A4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          <next>
          <block type="play_synth">
             <value name="NOTES">
                <block type="premade_chord">
                   <field name="NAME">C Major chord</field>
                   <value name="Note1"><block type="text"><field name="TEXT">C4</field></block></value>
                   <value name="Note2"><block type="text"><field name="TEXT">E4</field></block></value>
                   <value name="Note3"><block type="text"><field name="TEXT">G4</field></block></value>
                </block>
             </value>
             <value name="BEATS"><block type="math_number"><field name="NUM">2</field></block></value>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
        </statement>
      </block>

  </category>
</category>


Logic to show token owner when listing RFID tokens

Listing RFID tokens
  <%= if @member do %>
    for <%= link @member.name, to: company_member_path(@conn, :show, @member.company, @member) %>
  <% end %>

      Name
      Identifier
      Active?
      <%= unless @member do %>
        Owner
      <% end %>

<%= for rfid_token <- @rfid_tokens do %>

      <%= link RfidToken.display_name(rfid_token), to: rfid_token_path(@conn, :show, rfid_token) %>
      <%= rfid_token.identifier %>
      <%= rfid_token.active %>
      <%= unless @member do %>

          <%= if rfid_token.member do %>
            <% member = rfid_token.member %>
            <%= link member.name, to: company_member_path(@conn, :show, member.company, member) %> (<%= link member.company.name, to: company_path(@conn, :show, member.company) %>)
          <% else %>
            Unassigned
          <% end %>

      <% end %>

        <%= link "Edit", to: rfid_token_path(@conn, :edit, rfid_token), class: "btn btn-default btn-xs" %>
        <%= link "Delete", to: rfid_token_path(@conn, :delete, rfid_token), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>

<% end %>

<%= if @member do %>
  <%= link "New RFID Token", to: company_member_rfid_token_path(@conn, :new, @member.company, @member) %>
<% else %>
  <%= link "New RFID Token", to: rfid_token_path(@conn, :new) %>
<% end %>
|
<% # TODO: Fix this to a javascript:history(-1) link %>
<%= #link "Back", to: company_path(@conn, :show, @company) %>

Listing RFID tokens
  <%= if @member do %>
    for <%= link @member.name, to: company_member_path(@conn, :show, @member.company, @member) %>
  <% end %>

      Name
      Identifier
      Active?

<%= for rfid_token <- @rfid_tokens do %>

      <%= link RfidToken.display_name(rfid_token), to: rfid_token_path(@conn, :show, rfid_token) %>
      <%= rfid_token.identifier %>
      <%= rfid_token.active %>

        <%= link "Edit", to: rfid_token_path(@conn, :edit, rfid_token), class: "btn btn-default btn-xs" %>
        <%= link "Delete", to: rfid_token_path(@conn, :delete, rfid_token), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>

<% end %>

<%= if @member do %>
  <%= link "New RFID Token", to: company_member_rfid_token_path(@conn, :new, @member.company, @member) %>
<% else %>
  <%= link "New RFID Token", to: rfid_token_path(@conn, :new) %>
<% end %>
|
<% # TODO: Fix this to a javascript:history(-1) link %>
<%= #link "Back", to: company_path(@conn, :show, @company) %>


change to use is_logged_in helper instead of current_user

      <%= if Addict.Helper.is_logged_in(@conn) do %>
        Hi, <%= Addict.Helper.current_user(@conn).email %>!
      <% else %>
        You are not logged in.
      <% end %>

<%= gettext "Welcome to %{name}", name: "Addict(ed) Phoenix!" %>

don't worry about user management

User management

      <%= if Addict.Helper.current_user(@conn) do %>

          Logout

      <% else %>

          Register

          Login

          Recover Password

          Reset Password

      <% end %>

        Page available for logged in users only

Help

        Github Issues

      <%= if Addict.Helper.current_user(@conn) do %>
        Hi, <%= Addict.Helper.current_user(@conn).email %>!
      <% else %>
        You are not logged in.
      <% end %>

<%= gettext "Welcome to %{name}", name: "Addict(ed) Phoenix!" %>

don't worry about user management

User management

      <%= if Addict.Helper.current_user(@conn) do %>

          Logout

      <% else %>

          Register

          Login

          Recover Password

          Reset Password

      <% end %>

        Page available for logged in users only

Help

        Github Issues


Make this look more like a tabbed UI

Make this look more like a tabbed UI

        <%= for {stock_type, _type_id, _stocks} <- @stock_by_type do %>
          <a class="item <%= dasherize(stock_type) %>" href="#<%= dasherize(stock_type) %>" data-tab="<%= dasherize(stock_type) %>">
            <%= stock_type %>

        <% end %>

      <%= for {stock_type, type_id, stocks} <- @stock_by_type do %>
        <div class="ui tab" data-tab="<%= dasherize(stock_type) %>">
          <%= render SharedView,
            "stock_type.html",
            stock_type: stock_type,
            type_id: type_id,
            stock_by_type: @stock_by_type,
            stocks: stocks,
            package: @package,
            credits: @credits,
            family_members: @conn.assigns[:user].family_members,
            conn: @conn
          %>

      <% end %>

      <%= for {stock_type, type_id, _stocks} <- @stock_by_type do %>

 <%= stock_type %> <%= gettext("remaining:") %>

        <span class="js-<%= stock_type %>-credit-count">
          <span class="js-credit-count credit-type-<%= type_id %>" data-credit-type="<%= type_id %>" >
            <%=  @credits[stock_type] %>

          <%= type_id %>

      <% end %>

        <%= gettext "Shopping Cart" %>

          <%= for distribution <- @distributions do %>
            <%= render SharedView, "distribution.html", distribution: distribution, conn: @conn %>
          <% end %>

      <%= form_for @user_order, food_selection_path(@conn, :update, @conn.assigns.locale, @user_order.data.id), fn f -> %>
        <%= hidden_input(f, :finalized, value: true) %>
        <%= submit gettext("Complete your order!") %>
      <% end %>


Add .elixir_ls to .dockerignore (#4784)

Add .elixir_ls to .dockerignore (#4784)

# This file excludes paths from the Docker build context.
#
# By default, Docker's build context includes all files (and folders) in the
# current directory. Even if a file isn't copied into the container it is still sent to
# the Docker daemon.
#
# There are multiple reasons to exclude files from the build context:
#
# 1. Prevent nested folders from being copied into the container (ex: exclude
#    /assets/node_modules when copying /assets)
# 2. Reduce the size of the build context and improve build time (ex. /build, /deps, /doc)
# 3. Avoid sending files containing sensitive information
#
# More information on using .dockerignore is available here:
# https://docs.docker.com/engine/reference/builder/#dockerignore-file

.dockerignore
# There are valid reasons to keep .git, namely so that you can get the
# current commit hash
#/.git/

# Common development/test artifacts
/cover/
/doc/
/test/
/tmp/
.elixir_ls

# Mix artifacts
/_build/
/deps/
*.ez

# Generated on crash by the VM
erl_crash.dump

# Static artifacts - These should be fetched and built inside the Docker image
/assets/node_modules/
/priv/static/assets/
/priv/static/cache_manifest.json

# This file excludes paths from the Docker build context.
#
# By default, Docker's build context includes all files (and folders) in the
# current directory. Even if a file isn't copied into the container it is still sent to
# the Docker daemon.
#
# There are multiple reasons to exclude files from the build context:
#
# 1. Prevent nested folders from being copied into the container (ex: exclude
#    /assets/node_modules when copying /assets)
# 2. Reduce the size of the build context and improve build time (ex. /build, /deps, /doc)
# 3. Avoid sending files containing sensitive information
#
# More information on using .dockerignore is available here:
# https://docs.docker.com/engine/reference/builder/#dockerignore-file

.dockerignore
# There are valid reasons to keep .git, namely so that you can get the
# current commit hash
#/.git/

# Common development/test artifacts
/cover/
/doc/
/test/
/tmp/

# Mix artifacts
/_build/
/deps/
*.ez

# Generated on crash by the VM
erl_crash.dump

# Static artifacts - These should be fetched and built inside the Docker image
/assets/node_modules/
/priv/static/assets/
/priv/static/cache_manifest.json