diff options
42 files changed, 2700 insertions, 985 deletions
diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml new file mode 100644 index 0000000..d91079c --- /dev/null +++ b/.idea/dataSources.local.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="dataSourceStorageLocal"> + <data-source name="Django default" uuid="c2ec2b16-9a8a-4975-be60-2a0417af82c8"> + <database-info product="SQLite" version="3.25.1" jdbc-version="2.1" driver-name="SQLite JDBC" driver-version="3.25.1" dbms="SQLITE" exact-version="3.25.1" exact-driver-version="3.25"> + <identifier-quote-string>"</identifier-quote-string> + </database-info> + <case-sensitivity plain-identifiers="mixed" quoted-identifiers="mixed" /> + <auth-required>false</auth-required> + <schema-mapping> + <introspection-scope> + <node kind="schema" qname="@" /> + </introspection-scope> + </schema-mapping> + </data-source> + </component> +</project>
\ No newline at end of file diff --git a/.idea/dataSources/c2ec2b16-9a8a-4975-be60-2a0417af82c8.xml b/.idea/dataSources/c2ec2b16-9a8a-4975-be60-2a0417af82c8.xml new file mode 100644 index 0000000..766dfa4 --- /dev/null +++ b/.idea/dataSources/c2ec2b16-9a8a-4975-be60-2a0417af82c8.xml @@ -0,0 +1,954 @@ +<?xml version="1.0" encoding="UTF-8"?> +<dataSource name="Django default"> + <database-model serializer="dbm" dbms="SQLITE" family-id="SQLITE" format-version="4.16"> + <root id="1"> + <ServerVersion>3.25.1</ServerVersion> + </root> + <schema id="2" parent="1" name="main"> + <Current>1</Current> + </schema> + <collation id="3" parent="1" name="BINARY"/> + <collation id="4" parent="1" name="NOCASE"/> + <collation id="5" parent="1" name="RTRIM"/> + <table id="6" parent="2" name="auth_group"/> + <table id="7" parent="2" name="auth_group_permissions"/> + <table id="8" parent="2" name="auth_permission"/> + <table id="9" parent="2" name="auth_user"/> + <table id="10" parent="2" name="auth_user_groups"/> + <table id="11" parent="2" name="auth_user_user_permissions"/> + <table id="12" parent="2" name="django_admin_log"/> + <table id="13" parent="2" name="django_content_type"/> + <table id="14" parent="2" name="django_migrations"/> + <table id="15" parent="2" name="django_session"/> + <table id="16" parent="2" name="fossee_manim_animation"/> + <table id="17" parent="2" name="fossee_manim_animationstats"/> + <table id="18" parent="2" name="fossee_manim_category"/> + <table id="19" parent="2" name="fossee_manim_comment"/> + <table id="20" parent="2" name="fossee_manim_historicalanimation"/> + <table id="21" parent="2" name="fossee_manim_profile"/> + <table id="22" parent="2" name="sqlite_master"> + <System>1</System> + </table> + <table id="23" parent="2" name="sqlite_sequence"> + <System>1</System> + </table> + <table id="24" parent="2" name="taggit_tag"/> + <table id="25" parent="2" name="taggit_taggeditem"/> + <column id="26" parent="6" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="27" parent="6" name="name"> + <Position>2</Position> + <DataType>varchar(80)|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="28" parent="6" name="sqlite_autoindex_auth_group_1"> + <NameSurrogate>1</NameSurrogate> + <ColNames>name</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <key id="29" parent="6"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <key id="30" parent="6"> + <ColNames>name</ColNames> + <UnderlyingIndexName>sqlite_autoindex_auth_group_1</UnderlyingIndexName> + </key> + <column id="31" parent="7" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="32" parent="7" name="group_id"> + <Position>2</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="33" parent="7" name="permission_id"> + <Position>3</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="34" parent="7" name="auth_group_permissions_group_id_permission_id_0cd325b0_uniq"> + <ColNames>group_id +permission_id</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <index id="35" parent="7" name="auth_group_permissions_group_id_b120cbf9"> + <ColNames>group_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="36" parent="7" name="auth_group_permissions_permission_id_84c5c92e"> + <ColNames>permission_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="37" parent="7"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="38" parent="7"> + <ColNames>group_id</ColNames> + <RefTableName>auth_group</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <foreign-key id="39" parent="7"> + <ColNames>permission_id</ColNames> + <RefTableName>auth_permission__old</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="40" parent="8" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="41" parent="8" name="content_type_id"> + <Position>2</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="42" parent="8" name="codename"> + <Position>3</Position> + <DataType>varchar(100)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="43" parent="8" name="name"> + <Position>4</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="44" parent="8" name="auth_permission_content_type_id_codename_01ab375a_uniq"> + <ColNames>content_type_id +codename</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <index id="45" parent="8" name="auth_permission_content_type_id_2f476e4b"> + <ColNames>content_type_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="46" parent="8"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="47" parent="8"> + <ColNames>content_type_id</ColNames> + <RefTableName>django_content_type</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="48" parent="9" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="49" parent="9" name="password"> + <Position>2</Position> + <DataType>varchar(128)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="50" parent="9" name="last_login"> + <Position>3</Position> + <DataType>datetime|0s</DataType> + </column> + <column id="51" parent="9" name="is_superuser"> + <Position>4</Position> + <DataType>bool|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="52" parent="9" name="first_name"> + <Position>5</Position> + <DataType>varchar(30)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="53" parent="9" name="last_name"> + <Position>6</Position> + <DataType>varchar(30)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="54" parent="9" name="email"> + <Position>7</Position> + <DataType>varchar(254)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="55" parent="9" name="is_staff"> + <Position>8</Position> + <DataType>bool|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="56" parent="9" name="is_active"> + <Position>9</Position> + <DataType>bool|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="57" parent="9" name="date_joined"> + <Position>10</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="58" parent="9" name="username"> + <Position>11</Position> + <DataType>varchar(150)|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="59" parent="9" name="sqlite_autoindex_auth_user_1"> + <NameSurrogate>1</NameSurrogate> + <ColNames>username</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <key id="60" parent="9"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <key id="61" parent="9"> + <ColNames>username</ColNames> + <UnderlyingIndexName>sqlite_autoindex_auth_user_1</UnderlyingIndexName> + </key> + <column id="62" parent="10" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="63" parent="10" name="user_id"> + <Position>2</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="64" parent="10" name="group_id"> + <Position>3</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="65" parent="10" name="auth_user_groups_user_id_group_id_94350c0c_uniq"> + <ColNames>user_id +group_id</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <index id="66" parent="10" name="auth_user_groups_user_id_6a12ed8b"> + <ColNames>user_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="67" parent="10" name="auth_user_groups_group_id_97559544"> + <ColNames>group_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="68" parent="10"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="69" parent="10"> + <ColNames>user_id</ColNames> + <RefTableName>auth_user__old</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <foreign-key id="70" parent="10"> + <ColNames>group_id</ColNames> + <RefTableName>auth_group</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="71" parent="11" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="72" parent="11" name="user_id"> + <Position>2</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="73" parent="11" name="permission_id"> + <Position>3</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="74" parent="11" name="auth_user_user_permissions_user_id_permission_id_14a6b632_uniq"> + <ColNames>user_id +permission_id</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <index id="75" parent="11" name="auth_user_user_permissions_user_id_a95ead1b"> + <ColNames>user_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="76" parent="11" name="auth_user_user_permissions_permission_id_1fbb5f2c"> + <ColNames>permission_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="77" parent="11"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="78" parent="11"> + <ColNames>user_id</ColNames> + <RefTableName>auth_user__old</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <foreign-key id="79" parent="11"> + <ColNames>permission_id</ColNames> + <RefTableName>auth_permission__old</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="80" parent="12" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="81" parent="12" name="object_id"> + <Position>2</Position> + <DataType>text|0s</DataType> + </column> + <column id="82" parent="12" name="object_repr"> + <Position>3</Position> + <DataType>varchar(200)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="83" parent="12" name="action_flag"> + <Position>4</Position> + <DataType>smallint unsigned|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="84" parent="12" name="change_message"> + <Position>5</Position> + <DataType>text|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="85" parent="12" name="content_type_id"> + <Position>6</Position> + <DataType>integer|0s</DataType> + </column> + <column id="86" parent="12" name="user_id"> + <Position>7</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="87" parent="12" name="action_time"> + <Position>8</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="88" parent="12" name="django_admin_log_content_type_id_c4bce8eb"> + <ColNames>content_type_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="89" parent="12" name="django_admin_log_user_id_c564eba6"> + <ColNames>user_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="90" parent="12"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="91" parent="12"> + <ColNames>content_type_id</ColNames> + <RefTableName>django_content_type__old</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <foreign-key id="92" parent="12"> + <ColNames>user_id</ColNames> + <RefTableName>auth_user__old</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="93" parent="13" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="94" parent="13" name="app_label"> + <Position>2</Position> + <DataType>varchar(100)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="95" parent="13" name="model"> + <Position>3</Position> + <DataType>varchar(100)|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="96" parent="13" name="django_content_type_app_label_model_76bd3d3b_uniq"> + <ColNames>app_label +model</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <key id="97" parent="13"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <column id="98" parent="14" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="99" parent="14" name="app"> + <Position>2</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="100" parent="14" name="name"> + <Position>3</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="101" parent="14" name="applied"> + <Position>4</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <key id="102" parent="14"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <column id="103" parent="15" name="session_key"> + <Position>1</Position> + <DataType>varchar(40)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="104" parent="15" name="session_data"> + <Position>2</Position> + <DataType>text|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="105" parent="15" name="expire_date"> + <Position>3</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="106" parent="15" name="sqlite_autoindex_django_session_1"> + <NameSurrogate>1</NameSurrogate> + <ColNames>session_key</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <index id="107" parent="15" name="django_session_expire_date_a5c62663"> + <ColNames>expire_date</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="108" parent="15"> + <ColNames>session_key</ColNames> + <Primary>1</Primary> + <UnderlyingIndexName>sqlite_autoindex_django_session_1</UnderlyingIndexName> + </key> + <column id="109" parent="16" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="110" parent="16" name="title"> + <Position>2</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="111" parent="16" name="status"> + <Position>3</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="112" parent="16" name="subcategory"> + <Position>4</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="113" parent="16" name="created"> + <Position>5</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="114" parent="16" name="category_id"> + <Position>6</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="115" parent="16" name="contributor_id"> + <Position>7</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="116" parent="16" name="reviewer_id"> + <Position>8</Position> + <DataType>integer|0s</DataType> + </column> + <column id="117" parent="16" name="outline"> + <Position>9</Position> + <DataType>text|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="118" parent="16" name="fossee_manim_animation_category_id_b6a03fe4"> + <ColNames>category_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="119" parent="16" name="fossee_manim_animation_contributor_id_9731401b"> + <ColNames>contributor_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="120" parent="16" name="fossee_manim_animation_reviewer_id_409a668a"> + <ColNames>reviewer_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="121" parent="16"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="122" parent="16"> + <ColNames>category_id</ColNames> + <RefTableName>fossee_manim_category</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <foreign-key id="123" parent="16"> + <ColNames>contributor_id</ColNames> + <RefTableName>auth_user</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <foreign-key id="124" parent="16"> + <ColNames>reviewer_id</ColNames> + <RefTableName>auth_user</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="125" parent="17" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="126" parent="17" name="views"> + <Position>2</Position> + <DataType>integer unsigned|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="127" parent="17" name="like"> + <Position>3</Position> + <DataType>integer unsigned|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="128" parent="17" name="dislike"> + <Position>4</Position> + <DataType>integer unsigned|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="129" parent="17" name="thumbnail"> + <Position>5</Position> + <DataType>varchar(100)|0s</DataType> + </column> + <column id="130" parent="17" name="video_path"> + <Position>6</Position> + <DataType>varchar(100)|0s</DataType> + </column> + <column id="131" parent="17" name="animation_id"> + <Position>7</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <key id="132" parent="17"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="133" parent="17"> + <ColNames>animation_id</ColNames> + <RefTableName>fossee_manim_animation__old</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="134" parent="18" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="135" parent="18" name="name"> + <Position>2</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="136" parent="18" name="created"> + <Position>3</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="137" parent="18" name="description"> + <Position>4</Position> + <DataType>text|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="138" parent="18" name="sqlite_autoindex_fossee_manim_category_1"> + <NameSurrogate>1</NameSurrogate> + <ColNames>name</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <key id="139" parent="18"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <key id="140" parent="18"> + <ColNames>name</ColNames> + <UnderlyingIndexName>sqlite_autoindex_fossee_manim_category_1</UnderlyingIndexName> + </key> + <column id="141" parent="19" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="142" parent="19" name="comment"> + <Position>2</Position> + <DataType>text|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="143" parent="19" name="created_date"> + <Position>3</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="144" parent="19" name="animation_status"> + <Position>4</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="145" parent="19" name="animation_id"> + <Position>5</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="146" parent="19" name="commentor_id"> + <Position>6</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="147" parent="19" name="fossee_manim_comment_animation_id_6e4f0f3b"> + <ColNames>animation_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="148" parent="19" name="fossee_manim_comment_commentor_id_4925daa7"> + <ColNames>commentor_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="149" parent="19"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="150" parent="19"> + <ColNames>animation_id</ColNames> + <RefTableName>fossee_manim_animation__old</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <foreign-key id="151" parent="19"> + <ColNames>commentor_id</ColNames> + <RefTableName>auth_user</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="152" parent="20" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="153" parent="20" name="title"> + <Position>2</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="154" parent="20" name="status"> + <Position>3</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="155" parent="20" name="subcategory"> + <Position>4</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="156" parent="20" name="created"> + <Position>5</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="157" parent="20" name="history_id"> + <Position>6</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="158" parent="20" name="history_date"> + <Position>7</Position> + <DataType>datetime|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="159" parent="20" name="history_change_reason"> + <Position>8</Position> + <DataType>varchar(100)|0s</DataType> + </column> + <column id="160" parent="20" name="history_type"> + <Position>9</Position> + <DataType>varchar(1)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="161" parent="20" name="category_id"> + <Position>10</Position> + <DataType>integer|0s</DataType> + </column> + <column id="162" parent="20" name="contributor_id"> + <Position>11</Position> + <DataType>integer|0s</DataType> + </column> + <column id="163" parent="20" name="history_user_id"> + <Position>12</Position> + <DataType>integer|0s</DataType> + </column> + <column id="164" parent="20" name="reviewer_id"> + <Position>13</Position> + <DataType>integer|0s</DataType> + </column> + <column id="165" parent="20" name="outline"> + <Position>14</Position> + <DataType>text|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="166" parent="20" name="fossee_manim_historicalanimation_id_7bb1d9ba"> + <ColNames>id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="167" parent="20" name="fossee_manim_historicalanimation_category_id_358a43a6"> + <ColNames>category_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="168" parent="20" name="fossee_manim_historicalanimation_contributor_id_7d21ee43"> + <ColNames>contributor_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="169" parent="20" name="fossee_manim_historicalanimation_history_user_id_09692bd4"> + <ColNames>history_user_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="170" parent="20" name="fossee_manim_historicalanimation_reviewer_id_c719e2dc"> + <ColNames>reviewer_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="171" parent="20"> + <ColNames>history_id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="172" parent="20"> + <ColNames>history_user_id</ColNames> + <RefTableName>auth_user</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="173" parent="21" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="174" parent="21" name="title"> + <Position>2</Position> + <DataType>varchar(32)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="175" parent="21" name="institute"> + <Position>3</Position> + <DataType>varchar(150)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="176" parent="21" name="department"> + <Position>4</Position> + <DataType>varchar(150)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="177" parent="21" name="phone_number"> + <Position>5</Position> + <DataType>varchar(10)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="178" parent="21" name="position"> + <Position>6</Position> + <DataType>varchar(32)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="179" parent="21" name="how_did_you_hear_about_us"> + <Position>7</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="180" parent="21" name="location"> + <Position>8</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="181" parent="21" name="state"> + <Position>9</Position> + <DataType>varchar(255)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="182" parent="21" name="pincode"> + <Position>10</Position> + <DataType>varchar(6)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="183" parent="21" name="is_email_verified"> + <Position>11</Position> + <DataType>bool|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="184" parent="21" name="activation_key"> + <Position>12</Position> + <DataType>varchar(255)|0s</DataType> + </column> + <column id="185" parent="21" name="key_expiry_time"> + <Position>13</Position> + <DataType>datetime|0s</DataType> + </column> + <column id="186" parent="21" name="user_id"> + <Position>14</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="187" parent="21" name="sqlite_autoindex_fossee_manim_profile_1"> + <NameSurrogate>1</NameSurrogate> + <ColNames>user_id</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <key id="188" parent="21"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <key id="189" parent="21"> + <ColNames>user_id</ColNames> + <UnderlyingIndexName>sqlite_autoindex_fossee_manim_profile_1</UnderlyingIndexName> + </key> + <foreign-key id="190" parent="21"> + <ColNames>user_id</ColNames> + <RefTableName>auth_user</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <column id="191" parent="22" name="type"> + <Position>1</Position> + <DataType>text|0s</DataType> + </column> + <column id="192" parent="22" name="name"> + <Position>2</Position> + <DataType>text|0s</DataType> + </column> + <column id="193" parent="22" name="tbl_name"> + <Position>3</Position> + <DataType>text|0s</DataType> + </column> + <column id="194" parent="22" name="rootpage"> + <Position>4</Position> + <DataType>int|0s</DataType> + </column> + <column id="195" parent="22" name="sql"> + <Position>5</Position> + <DataType>text|0s</DataType> + </column> + <column id="196" parent="23" name="name"> + <Position>1</Position> + </column> + <column id="197" parent="23" name="seq"> + <Position>2</Position> + </column> + <column id="198" parent="24" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="199" parent="24" name="name"> + <Position>2</Position> + <DataType>varchar(100)|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="200" parent="24" name="slug"> + <Position>3</Position> + <DataType>varchar(100)|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="201" parent="24" name="sqlite_autoindex_taggit_tag_1"> + <NameSurrogate>1</NameSurrogate> + <ColNames>name</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <index id="202" parent="24" name="sqlite_autoindex_taggit_tag_2"> + <NameSurrogate>1</NameSurrogate> + <ColNames>slug</ColNames> + <ColumnCollations></ColumnCollations> + <Unique>1</Unique> + </index> + <key id="203" parent="24"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <key id="204" parent="24"> + <ColNames>name</ColNames> + <UnderlyingIndexName>sqlite_autoindex_taggit_tag_1</UnderlyingIndexName> + </key> + <key id="205" parent="24"> + <ColNames>slug</ColNames> + <UnderlyingIndexName>sqlite_autoindex_taggit_tag_2</UnderlyingIndexName> + </key> + <column id="206" parent="25" name="id"> + <Position>1</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + <SequenceIdentity>1</SequenceIdentity> + </column> + <column id="207" parent="25" name="object_id"> + <Position>2</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="208" parent="25" name="content_type_id"> + <Position>3</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <column id="209" parent="25" name="tag_id"> + <Position>4</Position> + <DataType>integer|0s</DataType> + <NotNull>1</NotNull> + </column> + <index id="210" parent="25" name="taggit_taggeditem_object_id_e2d7d1df"> + <ColNames>object_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="211" parent="25" name="taggit_taggeditem_content_type_id_object_id_196cc965_idx"> + <ColNames>content_type_id +object_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="212" parent="25" name="taggit_taggeditem_content_type_id_9957a03c"> + <ColNames>content_type_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <index id="213" parent="25" name="taggit_taggeditem_tag_id_f4f5b767"> + <ColNames>tag_id</ColNames> + <ColumnCollations></ColumnCollations> + </index> + <key id="214" parent="25"> + <ColNames>id</ColNames> + <Primary>1</Primary> + </key> + <foreign-key id="215" parent="25"> + <ColNames>content_type_id</ColNames> + <RefTableName>django_content_type</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + <foreign-key id="216" parent="25"> + <ColNames>tag_id</ColNames> + <RefTableName>taggit_tag</RefTableName> + <RefColNames>id</RefColNames> + </foreign-key> + </database-model> +</dataSource>
\ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..626182e --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ChangeListManager"> + <list default="true" id="38ed1c12-1d8b-4313-8f28-4c745bc3ce98" name="Default Changelist" comment=""> + <change beforePath="$PROJECT_DIR$/fossee_manim/templates/fossee_manim/delete_proposal.html" beforeDir="false" afterPath="$PROJECT_DIR$/fossee_manim/templates/fossee_manim/delete_proposal.html" afterDir="false" /> + </list> + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> + <option name="SHOW_DIALOG" value="false" /> + <option name="HIGHLIGHT_CONFLICTS" value="true" /> + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> + <option name="LAST_RESOLUTION" value="IGNORE" /> + </component> + <component name="Git.Settings"> + <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> + </component> + <component name="ProjectId" id="1RgbbNstYgXQOnKhGhdmfuuyq4D" /> + <component name="PropertiesComponent"> + <property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> + <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> + <property name="WebServerToolWindowFactoryState" value="false" /> + </component> + <component name="RunDashboard"> + <option name="ruleStates"> + <list> + <RuleState> + <option name="name" value="ConfigurationTypeDashboardGroupingRule" /> + </RuleState> + <RuleState> + <option name="name" value="StatusDashboardGroupingRule" /> + </RuleState> + </list> + </option> + </component> + <component name="RunManager"> + <configuration name="FOSSEE_animations" type="Python.DjangoServer" factoryName="Django server"> + <module name="FOSSEE_animations" /> + <option name="INTERPRETER_OPTIONS" value="" /> + <option name="PARENT_ENVS" value="true" /> + <envs> + <env name="PYTHONUNBUFFERED" value="1" /> + <env name="DJANGO_SETTINGS_MODULE" value="fossee_anime.settings" /> + </envs> + <option name="SDK_HOME" value="/usr/bin/python2.7" /> + <option name="WORKING_DIRECTORY" value="" /> + <option name="IS_MODULE_SDK" value="false" /> + <option name="ADD_CONTENT_ROOTS" value="true" /> + <option name="ADD_SOURCE_ROOTS" value="true" /> + <option name="launchJavascriptDebuger" value="false" /> + <option name="port" value="8000" /> + <option name="host" value="" /> + <option name="additionalOptions" value="" /> + <option name="browserUrl" value="" /> + <option name="runTestServer" value="false" /> + <option name="runNoReload" value="false" /> + <option name="useCustomRunCommand" value="false" /> + <option name="customRunCommand" value="" /> + <method v="2" /> + </configuration> + </component> + <component name="SvnConfiguration"> + <configuration /> + </component> + <component name="TaskManager"> + <task active="true" id="Default" summary="Default task"> + <changelist id="38ed1c12-1d8b-4313-8f28-4c745bc3ce98" name="Default Changelist" comment="" /> + <created>1570091761379</created> + <option name="number" value="Default" /> + <option name="presentableId" value="Default" /> + <updated>1570091761379</updated> + <workItem from="1570091780853" duration="4873000" /> + <workItem from="1570119567049" duration="648000" /> + <workItem from="1570164704492" duration="14096000" /> + <workItem from="1570182317776" duration="214000" /> + <workItem from="1570194833343" duration="2114000" /> + <workItem from="1570348205277" duration="10000" /> + </task> + <servers /> + </component> + <component name="TypeScriptGeneratedFilesManager"> + <option name="version" value="1" /> + </component> + <component name="Vcs.Log.Tabs.Properties"> + <option name="TAB_STATES"> + <map> + <entry key="MAIN"> + <value> + <State> + <option name="COLUMN_ORDER" /> + </State> + </value> + </entry> + </map> + </option> + </component> +</project>
\ No newline at end of file diff --git a/fossee_manim/forms.py b/fossee_manim/forms.py index 10be5b1..b7555fc 100644 --- a/fossee_manim/forms.py +++ b/fossee_manim/forms.py @@ -263,6 +263,7 @@ class AnimationProposal(forms.ModelForm): 'NOTE: Do add info about prerequisites (if any), possible textbooks and ' 'any other related information')} + class Meta: model = Animation fields = ['category', 'subcategory', 'title', 'outline', 'tags'] @@ -287,7 +288,6 @@ class CommentForm(forms.ModelForm): 'comments': forms.CharField(), } - class UploadAnimationForm(forms.ModelForm): def __init__(self, *args, **kwargs): diff --git a/fossee_manim/models.py b/fossee_manim/models.py index 21b2a3c..3470115 100644 --- a/fossee_manim/models.py +++ b/fossee_manim/models.py @@ -182,6 +182,8 @@ class Animation(models.Model): on_delete=models.CASCADE, related_name="%(app_label)s_%(class)s_related") outline = models.TextField() + # concepts = models.TextField() + # audience=models.TextField() status = models.CharField(max_length=255, choices=status) category = models.ForeignKey(Category, on_delete=models.CASCADE) subcategory = models.CharField(max_length=255, blank=True) diff --git a/fossee_manim/send_mails.py b/fossee_manim/send_mails.py index 363a0ec..86f4bc4 100644 --- a/fossee_manim/send_mails.py +++ b/fossee_manim/send_mails.py @@ -103,6 +103,7 @@ def send_email(request, call_on, contributor=None, key=None, proposal=None): "Congratulations! Your Animation has been Accepted!", message, SENDER_EMAIL, [contributor.profile.user.email], fail_silently=True ) + """create a table and add the status as mail send""" elif call_on == 'rejected': message = dedent("""\ Dear {0}, diff --git a/fossee_manim/static/css/index.css b/fossee_manim/static/css/index.css index 5994fb1..9840f69 100644 --- a/fossee_manim/static/css/index.css +++ b/fossee_manim/static/css/index.css @@ -128,11 +128,16 @@ hr { .footer{ right: 0; left: 0; +<<<<<<< HEAD + bottom: 0; + padding: 1rem; +======= position: relative; bottom: 0; owerflow: hidden; padding: 95px; +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 text-align: center; } a{ diff --git a/fossee_manim/templates/fossee_manim/about.html b/fossee_manim/templates/fossee_manim/about.html index 744aecf..4688740 100644 --- a/fossee_manim/templates/fossee_manim/about.html +++ b/fossee_manim/templates/fossee_manim/about.html @@ -1,22 +1,33 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - About - {% endblock %} +{% block title %} +About +{% endblock %} {% block content %} +<<<<<<< HEAD +<div class="container-fluid jumbotron" align="justify" + style="margin-top:20px; padding:50px; background-color: transparent;"> + <!-- style="padding-top:120px"> --> + <center> +======= <div class="container-fluid jumbotron" align = "justify" style="margin-top:20px; margin-bottom: 56px; padding:50px; background-color: transparent;"> {% comment %}style="padding-top:120px"> {% endcomment %} <center> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 <h1>About FOSSEE Animations</h1> - <h4 style= "color: #555555;"><i>What</i> do we do and <i>why</i>?</h4> - </center> + <h4 style="color: #555555;"><i>What</i> do we do and <i>why</i>?</h4> + </center> - <div class="container" style= "font-family: 'Lato', sans-serif; background-color: #e7edee;"> + <div class="container" style="font-family: 'Lato', sans-serif; background-color: #e7edee;"> <hr> -</div> </div> +<<<<<<< HEAD +</div> +{% endblock content %} +======= <div> {% endblock content %} </div> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 diff --git a/fossee_manim/templates/fossee_manim/activation.html b/fossee_manim/templates/fossee_manim/activation.html index 10a3d60..20a4c62 100644 --- a/fossee_manim/templates/fossee_manim/activation.html +++ b/fossee_manim/templates/fossee_manim/activation.html @@ -1,24 +1,24 @@ {% extends 'fossee_manim/base.html' %} {% block title %} - Awating activation +Awating activation {% endblock %} {% block header %} - <nav class="navbar navbar-default navbar-custom"> - <div class="container-fluid"> +<nav class="navbar navbar-default navbar-custom"> + <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="#">FOSSEE Animations</a> + <a class="navbar-brand" href="#">FOSSEE Animations</a> </div> <ul class="nav navbar-nav navbar-right"> - {% if request.user.profile.is_email_verified %} - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile</a></li> - - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> - {% endif %} + {% if request.user.profile.is_email_verified %} + <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile</a></li> + + <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + {% endif %} </ul> - </div> - </nav> + </div> +</nav> {% endblock %} {% block extra %} @@ -27,45 +27,46 @@ {% block content %} <br> - {% if status == '2' %} - <div class="container"> - <div class="jumbotron"> - <p> Your email is already verified, Please view your profile <a href="{{ URL_ROOT }}/view_profile/">here</a> </p> - - </div> +{% if status == '2' %} +<div class="container"> + <div class="jumbotron"> + <p> Your email is already verified, Please view your profile <a href="{{ URL_ROOT }}/view_profile/">here</a> + </p> + </div> - {% elif status == '1' %} - <script type="text/javascript"> - window.setTimeout(function() - { - location.href="{{ URL_ROOT }}/register/" - }, 5000); - </script> - <div class="container"> - <div class="jumbotron"> - <p> Your activation has expired please register again</p> - </div> +</div> +{% elif status == '1' %} +<script type="text/javascript"> + window.setTimeout(function () { + location.href = "{{ URL_ROOT }}/register/" + }, 5000); +</script> +<div class="container"> + <div class="jumbotron"> + <p> Your activation has expired please register again</p> </div> - {% elif status == '0' %} - <div class="container"> - <div class="jumbotron"> - <p> Your account has been activated. Please view your profile <a href="{{ URL_ROOT }}/view_profile/">here</a> </p> - - </div> +</div> +{% elif status == '0' %} +<div class="container"> + <div class="jumbotron"> + <p> Your account has been activated. Please view your profile <a href="{{ URL_ROOT }}/view_profile/">here</a> + </p> + </div> - {% else %} - <script type="text/javascript"> - window.setTimeout(function() - { - location.href="{{ URL_ROOT }}/logout/" - }, 5000); - </script> +</div> +{% else %} +<script type="text/javascript"> + window.setTimeout(function () { + location.href = "{{ URL_ROOT }}/logout/" + }, 5000); +</script> - <div class="container"> - <div class="jumbotron"> - <h1>Activation Awaiting</h1> - <p>The Activation Link has been sent to your email. The link expires in <strong>24hours</strong> from the date of registration. You will be logged out automatically.</p> - </div> +<div class="container"> + <div class="jumbotron"> + <h1>Activation Awaiting</h1> + <p>The Activation Link has been sent to your email. The link expires in <strong>24hours</strong> from the date + of registration. You will be logged out automatically.</p> </div> - {% endif %} +</div> +{% endif %} {% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/base.html b/fossee_manim/templates/fossee_manim/base.html index 5e6326e..ae45a6a 100644 --- a/fossee_manim/templates/fossee_manim/base.html +++ b/fossee_manim/templates/fossee_manim/base.html @@ -34,7 +34,11 @@ <body> {% block header %} +<<<<<<< HEAD + <nav class="navbar navbar-expand-md row fixed-top" style="background-color:#222222; padding-top: 20px; padding-bottom: 20px;"> +======= <nav class="navbar navbar-expand-lg " style="background-color:#222222; color: white;"> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 <a class="navbar-brand" href="{% url 'index' %}"> <img src="{{ URL_ROOT }}/static/img/logo_main.png" width="200" height="50" alt="" style="margin-right: 50px; margin-left: 20px"> @@ -110,8 +114,12 @@ </form> </div> +<<<<<<< HEAD + </div> +======= </nav> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 {% endblock %} {% block content %} @@ -122,8 +130,12 @@ <!-- </main> --> {% block footer %} +<<<<<<< HEAD + <footer class="footer" style="background-color: #222222; font-family: 'Lato', sans-serif; padding:30px;"> +======= <footer class="page-footer"> <div class="footer" style="background-color: #222222; font-family: 'Lato', sans-serif; padding:95px;"> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 <div class="container"> <div class="row"> <div class="col-md-4 text-center"> @@ -154,12 +166,20 @@ This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License </div> </div> +<<<<<<< HEAD + </footer> + + {% endblock footer %} + <!-- + START Bootstrap-Alert +======= </div> </footer> {% endblock footer %} <!-- START Bootstrap-Alert +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 <div class="alert text-center cookiealert" role="alert" style="background: #d1ff3c; color: black;"> The website is currently undergoing some developmental changes. If you encounter any glitches, write to us at animations@fossee.in ; we value your feedback and suggestions ! diff --git a/fossee_manim/templates/fossee_manim/categorical_list.html b/fossee_manim/templates/fossee_manim/categorical_list.html index 62a5f00..f3b6dae 100644 --- a/fossee_manim/templates/fossee_manim/categorical_list.html +++ b/fossee_manim/templates/fossee_manim/categorical_list.html @@ -1,38 +1,40 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - FOSSEE Animation - {% endblock %} +{% block title %} +FOSSEE Animation +{% endblock %} {% block content %} +<br> +<div class="container-fluid"> <br> - <div class="container-fluid" > - <br> - <div class="row" align="center"> - <div class="col-md-12"> - <h1 style="float: left;">{{ categorial_list.0.animation.category }}</h1> - </div> + <div class="row" align="center"> + <div class="col-md-12"> + <h1 style="float: left;">{{ categorial_list.0.animation.category }}</h1> </div> - <hr> - <br> + </div> + <hr> + <br> {% for video in categorial_list %} - <div class="row"> - <div class="col-md-4"> - <a href="{% url 'video' video.id %}" > - <span class="fa fa-play fa-4x" id="play-btn"></span> - <img height="90%" width="100%" src="{{ video.thumbnail.url }}"> - </a> - </div> - <div class="col-md-4"> - <p style="color:#26A669; font-size: 300%;"> {{ video.animation.title }} </p> - <p style="color:#26A669; font-size: 100%;"> {{ video.animation.description | truncatewords:5}} </p> - <a target="_blank" href="{{ video.animation.github }}"><p style="font-size: 70%;"> {{ video.animation.github }} </p></a> - </div> + <div class="row"> + <div class="col-md-4"> + <a href="{% url 'video' video.id %}"> + <span class="fa fa-play fa-4x" id="play-btn"></span> + <img height="90%" width="100%" src="{{ video.thumbnail.url }}"> + </a> </div> + <div class="col-md-4"> + <p style="color:#26A669; font-size: 300%;"> {{ video.animation.title }} </p> + <p style="color:#26A669; font-size: 100%;"> {{ video.animation.description | truncatewords:5}} </p> + <a target="_blank" href="{{ video.animation.github }}"> + <p style="font-size: 70%;"> {{ video.animation.github }} </p> + </a> + </div> + </div> <hr> {% endfor %} - <br> - </div> <br> -{% endblock %} +</div> +<br> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/delete_proposal.html b/fossee_manim/templates/fossee_manim/delete_proposal.html new file mode 100644 index 0000000..4c0db5e --- /dev/null +++ b/fossee_manim/templates/fossee_manim/delete_proposal.html @@ -0,0 +1,46 @@ +{% extends 'fossee_manim/base.html' %} + +{% block title %} + Delete Proposal +{% endblock %} + +{% block content %} + <br> + <div class="container"> + <center> + <h2>Delete Proposal : {{ proposal.title }}</h2> + </center> + <table class="table table-hover" style="font-family: 'Lato', sans-serif;"> + <tbody> + <tr> + <td>Proposal Name :</td> + <td>{{ proposal.title }}</td> + </tr> + <tr> + <td>Proposal category :</td> + <td>{{ proposal.categorye }}</td> + </tr> + <tr> + <td>Sub Category :</td> + <td>{{ proposal.subcategory }}</td> + </tr> + <tr> + <td>Contributor :</td> + <td>{{ proposal.contributor }}</td> + </tr> + <tr> + <td>Created on :</td> + <td>{{ proposal.created }}</td> + </tr> + <tr> +<td colspan="2"> + <center> + <a href="{% url 'delete_proposal_info' proposal.id %}"><button type="button" class="btn btn-info" id="btnred">Delete {{ proposal.title }}</button></a> + </center> +</td> + </tr> + </tbody> + </table> + </div> + +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/edit_profile.html b/fossee_manim/templates/fossee_manim/edit_profile.html index e5c3bc5..238fb2d 100644 --- a/fossee_manim/templates/fossee_manim/edit_profile.html +++ b/fossee_manim/templates/fossee_manim/edit_profile.html @@ -1,7 +1,7 @@ {% extends "fossee_manim/base.html" %} {% block title %} - Edit Profile +Edit Profile {% endblock %} {% block extra %} @@ -11,18 +11,20 @@ {% block content %} <br> - <div class="container"> - <center> <h1> Edit Profile </h1> </center> - <form action="{{URL_ROOT}}/edit_profile/" method="post" > +<div class="container"> + <center> + <h1> Edit Profile </h1> + </center> + <form action="{{URL_ROOT}}/edit_profile/" method="post"> {% csrf_token %} - <center> - <table class="table table-bordered"> - {{ form.as_table }} - </table> - </center> - <br> - <button class="btn btn-primary pull-right" type="submit" id="btnblue">Save Profile</button> - </form> - <br> <br> <br> - </div> -{% endblock %} + <center> + <table class="table table-bordered"> + {{ form.as_table }} + </table> + </center> + <br> + <button class="btn btn-primary pull-right" type="submit" id="btnblue">Save Profile</button> + </form> + <br> <br> <br> +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/edit_proposal.html b/fossee_manim/templates/fossee_manim/edit_proposal.html index cfc2beb..8543014 100644 --- a/fossee_manim/templates/fossee_manim/edit_proposal.html +++ b/fossee_manim/templates/fossee_manim/edit_proposal.html @@ -1,8 +1,8 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Edit Proposal - {% endblock %} +{% block title %} +Edit Proposal +{% endblock %} {% block content %} <script type="text/javascript"> @@ -10,121 +10,122 @@ </script> <br> <div class="container"> - {% if messages %} - <ul class="messages"> - {% for message in messages %} - <div class="alert alert-{{ message.tags }}"> - <li {% if message.tags %} class="{{ message.tags }}"{% endif %}> {{ message }} - </li> - </div> - {% endfor %} - </ul> - {% endif %} + {% if messages %} + <ul class="messages"> + {% for message in messages %} + <div class="alert alert-{{ message.tags }}"> + <li {% if message.tags %} class="{{ message.tags }}" {% endif %}> {{ message }} + </li> + </div> + {% endfor %} + </ul> + {% endif %} - <form method="POST" > - {% csrf_token %} + <form method="POST"> + {% csrf_token %} - <table class="table table-bordered"> - {{ proposal_form.as_table }} - </table> + <table class="table table-bordered"> + {{ proposal_form.as_table }} + </table> <br> - <button class="btn btn-primary pull-right" type="submit" id="btnblue">Save</button> - <br> + <button class="btn btn-primary pull-right" type="submit" id="btnblue">Save</button> + <br> </form> <br> {% if proposal_form.instance.status == 'changes' and request.user.profile.position == 'contributor' %} <form method="POST" action="{% url 'upload_animation' proposal_form.instance.id %}" enctype="multipart/form-data"> - {% csrf_token %} - <label class="btn btn-info"> - {{ upload_form }} - <button class="btn btn-success" type="submit">Upload</button> - {{ msg }} - </label> + {% csrf_token %} + <label class="btn btn-info"> + {{ upload_form }} + <button class="btn btn-success" type="submit">Upload</button> + {{ msg }} + </label> </form> {% elif proposal_form.instance.status == 'pending' and request.user.profile.position == 'contributor' %} - <h3>Awaiting Reviewer's Moderation </h3> - <h6>Further details regarding the second stage of Proposal will be shared with you over the email shortly</h6> + <h3>Awaiting Reviewer's Moderation </h3> + <h6>Further details regarding the second stage of Proposal will be shared with you over the email shortly</h6> {% else %} - <video width="100%" height="100%" controls> - <source src="{{video.0.video_path.url}}" type="video/mp4"> - </video> + <video width="100%" height="100%" controls> + <source src="{{video.0.video_path.url}}" type="video/mp4"> + </video> {% endif %} <br><br> {% if request.user.profile.position == 'reviewer' %} - <form method="POST" > - {% csrf_token %} - <div class="form-group"> - <div class="row"> - <button class="btn btn-success pull-left" type="submit" name="release" value="1">Approve</button> - <button class="btn btn-danger pull-left" type="submit" name="rejected" value="2" style="margin-left: 1%">Reject</button> - <button class="btn btn-info pull-left" type="submit" name="proposal_form" value="3" style="margin-left: 1%" >Send Proposal 2 Form</button> - </div> - </div> + <form method="POST"> + {% csrf_token %} + <div class="form-group"> + <div class="row"> + <button class="btn btn-success pull-left" type="submit" name="release" value="1">Approve</button> + <button class="btn btn-danger pull-left" type="submit" name="rejected" value="2" + style="margin-left: 1%">Reject</button> + <button class="btn btn-info pull-left" type="submit" name="proposal_form" value="3" style="margin-left: 1%">Send + Proposal 2 Form</button> + </div> + </div> </form> {% endif %} <br><br> <h2>Comments</h2> <div> - <form method="POST"> - <br> - {% csrf_token %} - {{ comment_form.as_p }} - <button type="submit" class="btn btn-default">Post</button> - </form> + <form method="POST"> + <br> + {% csrf_token %} + {{ comment_form.as_p }} + <button type="submit" class="btn btn-default">Post</button> + </form> - </div> - <hr style="background-color: #fff; + </div> + <hr style="background-color: #fff; border-top: 5px double #8c8b8b;"> - <table> - {% for comment in comments %} - <tbody> - <tr> - <td> - <h5>{{ comment.commentor.profile.user.get_full_name }} | {{ comment.created_date | date }}</h5> - <h6 style="background-color: #ecf0f1; padding:10px;">{{ comment.comment }}</h6> - <hr style="border-top: 0.5px solid #8c8b8b;"> - </td> - </tr> - </tbody> - {% endfor %} - </table> + <table> + {% for comment in comments %} + <tbody> + <tr> + <td> + <h5>{{ comment.commentor.profile.user.get_full_name }} | {{ comment.created_date | date }}</h5> + <h6 style="background-color: #ecf0f1; padding:10px;">{{ comment.comment }}</h6> + <hr style="border-top: 0.5px solid #8c8b8b;"> + </td> + </tr> + </tbody> + {% endfor %} + </table> -<br><br> - </div> + <br><br> +</div> - <!-- Page Navigation --> - <div class="container"> - <div class="Page-Nav" align="center"> - <nav aria-label="Page navigation"> - <ul class="pagination pagination-sm"> - <li class="page-item"> - {% if comments.has_previous %} - <a class="page-link" tabindex="-1" - href="?page={{ comments.previous_page_number }}">Previous</a> - {% endif %} - </li> - <li class="page-item"> - <span class="current"> - Page {{ comments.number }} of {{ comments.paginator.num_pages }} - </span> - </li> - <li class="page-item"> - {% if comments.has_next %} - <a class="page-link" href="?page={{ comments.next_page_number }}">Next - </a> +<!-- Page Navigation --> +<div class="container"> + <div class="Page-Nav" align="center"> + <nav aria-label="Page navigation"> + <ul class="pagination pagination-sm"> + <li class="page-item"> + {% if comments.has_previous %} + <a class="page-link" tabindex="-1" href="?page={{ comments.previous_page_number }}">Previous</a> {% endif %} - </li> - </ul> - </nav> - </div> - <br> - </div> + </li> + <li class="page-item"> + <span class="current"> + Page {{ comments.number }} of {{ comments.paginator.num_pages }} + </span> + </li> + <li class="page-item"> + {% if comments.has_next %} + <a class="page-link" href="?page={{ comments.next_page_number }}">Next + </a> + {% endif %} + </li> + </ul> + </nav> + </div> + <br> +</div> </div> -{% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/explore.html b/fossee_manim/templates/fossee_manim/explore.html index 5cae180..1ab618d 100644 --- a/fossee_manim/templates/fossee_manim/explore.html +++ b/fossee_manim/templates/fossee_manim/explore.html @@ -1,40 +1,40 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Explore - {% endblock %} +{% block title %} +Explore +{% endblock %} {% block content %} <div class="album py-5 bg-light"> <div class="container"> <div class="row"> -{% for video in videos %} - <div class="col-md-4"> - <div class="card mb-4 box-shadow"> - <a href="{% url 'video' video.id %}" > - <img class="card-img-top" alt="Video Thumbnail" src="{{ video.thumbnail.url }}"> - </a> - <div class="card-body"> - <a href="{% url 'video' video.id %}"> - <h4 class="card-text" style="color: #157b80;"> {{video.animation.title}} </h4> - </a> - <p class="card-text"> {{video.animation.outline|truncatechars:200}}</p> + {% for video in videos %} + <div class="col-md-4"> + <div class="card mb-4 box-shadow"> + <a href="{% url 'video' video.id %}"> + <img class="card-img-top" alt="Video Thumbnail" src="{{ video.thumbnail.url }}"> + </a> + <div class="card-body"> + <a href="{% url 'video' video.id %}"> + <h4 class="card-text" style="color: #157b80;"> {{video.animation.title}} </h4> + </a> + <p class="card-text"> {{video.animation.outline|truncatechars:200}}</p> - <p class="card-text" style="color: #666666"> Contributor: {{video.animation.contributor}}</p> - <!-- <div class="d-flex justify-content-between align-items-center"> --> - <!-- <div class="btn-group"> + <p class="card-text" style="color: #666666"> Contributor: {{video.animation.contributor}}</p> + <!-- <div class="d-flex justify-content-between align-items-center"> --> + <!-- <div class="btn-group"> <button type="button" class="btn btn-sm btn-outline-secondary">View</button> <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button> </div> <small class="text-muted">9 mins</small> --> - <!-- </div> --> - </div> - </div> - </div> -{% endfor %} + <!-- </div> --> + </div> + </div> + </div> + {% endfor %} </div> </div> </div> -{% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/faqs.html b/fossee_manim/templates/fossee_manim/faqs.html index 367408a..f22f79b 100644 --- a/fossee_manim/templates/fossee_manim/faqs.html +++ b/fossee_manim/templates/fossee_manim/faqs.html @@ -1,8 +1,8 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - FAQs - {% endblock %} +{% block title %} +FAQs +{% endblock %} {% block content %} <style> @@ -10,78 +10,142 @@ background-color: #f2e680; } </style> -<div class="container-fluid jumbotron" align = "justify" style="margin-top:20px; background-color: transparent"> - <!-- style="padding-top:120px"> --> -<h1><center>Frequently Asked Questions</center></h1> - <div class="container" style= "font-family: 'Lato', sans-serif;"> +<div class="container-fluid jumbotron" align="justify" style="margin-top:20px; background-color: transparent"> + <!-- style="padding-top:120px"> --> + <h1> + <center>Frequently Asked Questions</center> + </h1> + <div class="container" style="font-family: 'Lato', sans-serif;"> - <hr> - <ul> - <li><h5>Who can submit proposals?</h5></li> - Anyone can submit proposals. - <br><br> - <li><h5>Will the contributors receive certificates?</h5></li> - Yes, contributors will receive certificates from FOSSEE, IIT Bombay, if their proposal is approved and consequently uploaded on the Animations website. - <br><br> - <li><h5>Will I get a certificate for each successful proposal? </h5></li> - For every unique animation released, you would get a certificate. If you submit a series of animations on closely related topics, you will get one certificate for the entire set of videos, and the same will be accordingly reflected in the certificate. - <br><br> - <li><h5>When will I get my certificate? </h5></li> - Within 15 working days after the animation has been published on the website. - <br><br> - <li><h5>Do I have to register to contribute?</h5></li> - Yes, you have to register and login to your account to follow the procedure for contributing. The detailed instructions are given on the <a href="{% url 'guidelines' %}">Guidelines page. </a> - <br><br> - <li><h5>Do we have to pay for contributing?</h5></li> - No, you don’t have to pay any amount for contributing. In turn, you will receive an honorarium if your proposal gets accepted and you submit your animation on the (animations) website. - <br><br> - <li><h5>How much honorarium will I receive for a single animation?</h5></li> + <hr> + <ul> + <li> + <h5>Who can submit proposals?</h5> + </li> + Anyone can submit proposals. + <br><br> + <li> + <h5>Will the contributors receive certificates?</h5> + </li> + Yes, contributors will receive certificates from FOSSEE, IIT Bombay, if their proposal is approved and + consequently uploaded on the Animations website. + <br><br> + <li> + <h5>Will I get a certificate for each successful proposal? </h5> + </li> + For every unique animation released, you would get a certificate. If you submit a series of animations on + closely related topics, you will get one certificate for the entire set of videos, and the same will be + accordingly reflected in the certificate. + <br><br> + <li> + <h5>When will I get my certificate? </h5> + </li> + Within 15 working days after the animation has been published on the website. + <br><br> + <li> + <h5>Do I have to register to contribute?</h5> + </li> + Yes, you have to register and login to your account to follow the procedure for contributing. The detailed + instructions are given on the <a href="{% url 'guidelines' %}">Guidelines page. </a> + <br><br> + <li> + <h5>Do we have to pay for contributing?</h5> + </li> + No, you don’t have to pay any amount for contributing. In turn, you will receive an honorarium if your + proposal gets accepted and you submit your animation on the (animations) website. + <br><br> + <li> + <h5>How much honorarium will I receive for a single animation?</h5> + </li> The details on the honorarium amount you receive is given <a href="{% url 'honorarium' %}">here</a> - <br><br> - <li><h5>How much time can I take for making a single animation?</h5></li> - We expect you to give a fully working video within 15 days of submitting your Proposal Form 2, after which your proposal would be discarded. - <br><br> - <li><h5>How many videos can be uploaded per proposal?</h5></li> - One video per proposal can be submitted. If you want to submit more than one animation, you will have to submit separate proposals for each of them. - <br><br> - <li><h5>I am from a non-technical background, but wish to animate the concepts I know. Can I contribute?</h5></li> - Yes. We suggest you get started with the Python language. There are various good resources for beginners in Python. You could also refer to the free Python Self Learning online course offered by the FOSSEE team at IIT Bombay. - Based on what you want to animate, you could use open source tools or libraries such as manim, mayavi, Blender, PySph and so on. - <br><br> - <li><h5>What all topics can I submit animations on?</h5></li> - Any category of science / engineering topics can be animated (biology, mathematics, aerospace, etc.). - <br><br> - <li><h5>I want to submit a proposal for a Category other than Mathematics, Physics and Engineering, What should I do?</h5></li> - There is an option “Others” in the “Category” field of Proposal Stage 1. Please select that Category. An email will be sent to you regarding your choice of category. Depending on the number of entries for your suggestion, your category might be added to the list of categories in Proposal Stage 1. - <br><br> - <li><h5>Do the topics I have chosen be college-level?</h5></li> + <br><br> + <li> + <h5>How much time can I take for making a single animation?</h5> + </li> + We expect you to give a fully working video within 15 days of submitting your Proposal Form 2, after which + your proposal would be discarded. + <br><br> + <li> + <h5>How many videos can be uploaded per proposal?</h5> + </li> + One video per proposal can be submitted. If you want to submit more than one animation, you will have to + submit separate proposals for each of them. + <br><br> + <li> + <h5>I am from a non-technical background, but wish to animate the concepts I know. Can I contribute? + </h5> + </li> + Yes. We suggest you get started with the Python language. There are various good resources for beginners in + Python. You could also refer to the free Python Self Learning online course offered by the FOSSEE team at + IIT Bombay. + Based on what you want to animate, you could use open source tools or libraries such as manim, mayavi, + Blender, PySph and so on. + <br><br> + <li> + <h5>What all topics can I submit animations on?</h5> + </li> + Any category of science / engineering topics can be animated (biology, mathematics, aerospace, etc.). + <br><br> + <li> + <h5>I want to submit a proposal for a Category other than Mathematics, Physics and Engineering, What + should I do?</h5> + </li> + There is an option “Others” in the “Category” field of Proposal Stage 1. Please select that Category. An + email will be sent to you regarding your choice of category. Depending on the number of entries for your + suggestion, your category might be added to the list of categories in Proposal Stage 1. + <br><br> + <li> + <h5>Do the topics I have chosen be college-level?</h5> + </li> You may animate concepts of any difficulty level, from school level and up. - <br><br> - <li><h5>Can I use the videos published on the FOSSEE animations website in my class?</h5></li> - Yes. One of the major focus of the FOSSEE Animations project is to promote a visual-approach to learning of science concepts. - The videos are published under a Creative Commons Attribution-ShareAlike 4.0 International License licence. + <br><br> + <li> + <h5>Can I use the videos published on the FOSSEE animations website in my class?</h5> + </li> + Yes. One of the major focus of the FOSSEE Animations project is to promote a visual-approach to learning of + science concepts. + The videos are published under a Creative Commons Attribution-ShareAlike 4.0 International License licence. The code used to generate the videos is to be published under the MIT license. <span>Please place the terms and conditions of the MIT license on the GitHub page of your code.</span> - <br><br> - <li><h5>When will I receive my Honorarium?</h5></li> + <br><br> + <li> + <h5>When will I receive my Honorarium?</h5> + </li> Honorarium would generally be processed within 45 days from the day we receive your forms. - However, if you do not receive your money within 45 days of acknowledgement of forms received, please feel free to contact us; we’ll be happy to assist you. - <br><br> - <li><h5>How many books can I use for reference?</h5></li> + However, if you do not receive your money within 45 days of acknowledgement of forms received, please feel + free to contact us; we’ll be happy to assist you. + <br><br> + <li> + <h5>How many books can I use for reference?</h5> + </li> As many books as you have chosen for helping you animate that particular concept - <br><br> - <li><h5>Is this program only for students with a programming background?</h5></li> + <br><br> + <li> + <h5>Is this program only for students with a programming background?</h5> + </li> No! Anyone with the required interest and knowledge sign up for contributing. - <br><br> - <li><h5>Should I email you the code once I’m done creating the videos?</h5></li> - No, it is best practice to upload your code on GitHub and mention the link to the code in the video outline once you are done creating the video. - <br><br> - <li><h5>I do not know GitHub. What should I do?</h5></li> - Please visit here to learn about <a href="https://git-scm.com/docs/gittutorial" target="_blank">Git</a> and <a href="https://guides.github.com/activities/hello-world/" target="_blank">Github</a> - </ul> - <br> + <br><br> + <li> + <h5>Should I email you the code once I’m done creating the videos?</h5> + </li> + No, it is best practice to upload your code on GitHub and mention the link to the code in the video outline + once you are done creating the video. + <br><br> + <li> + <h5>I do not know GitHub. What should I do?</h5> + </li> + Please visit here to learn about <a href="https://git-scm.com/docs/gittutorial" target="_blank">Git</a> and + <a href="https://guides.github.com/activities/hello-world/" target="_blank">Github</a> + </ul> + <br> +<<<<<<< HEAD + <h5>If you have any other queries, email us at <a href="mailto: animations@fossee.in">animations@fossee.in</a> + </h2> + </div> +======= <h5>If you have any other queries, email us at <a href="mailto: animations@fossee.in">animations@fossee.in</a> </h5> </div> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 </div> -{% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/guidelines.html b/fossee_manim/templates/fossee_manim/guidelines.html index 93c9dba..fdcb93f 100644 --- a/fossee_manim/templates/fossee_manim/guidelines.html +++ b/fossee_manim/templates/fossee_manim/guidelines.html @@ -1,156 +1,215 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Animation Guidelines - {% endblock %} +{% block title %} +Animation Guidelines +{% endblock %} {% block content %} - <style> - span { - background-color: #c2d2df; - } - </style> - <div class="container-fluid jumbotron" align = "justify" style="margin-top:20px; background-color: #e7edee;"> - <h1><center>Guidelines for Submitting Proposals</center></h1> - <div class="container"> - <hr> - <div id="accordion"> - <div class="card"> - <div class="card-header" id="headingOne"> - <h5 class="mb-0"> - <button class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> - 1. Creating an account +<style> + span { + background-color: #c2d2df; + } +</style> +<div class="container-fluid jumbotron" align="justify" style="margin-top:20px; background-color: #e7edee;"> + <h1> + <center>Guidelines for Submitting Proposals</center> + </h1> + <div class="container"> + <hr> + <div id="accordion"> + <div class="card"> + <div class="card-header" id="headingOne"> + <h5 class="mb-0"> + <button class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" + aria-expanded="true" aria-controls="collapseOne"> + 1. Creating an account </button> - </h5> - </div> + </h5> + </div> - <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion"> - <div class="card-body"> + <div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion"> + <div class="card-body"> <ul> - <li> Create your account on the FOSSEE Animations website.</li> - <li> Upon successful registration, an email is sent to your registered email ID. Activate your account by clicking on the activation link provided.</li> + <li> Create your account on the FOSSEE Animations website.</li> + <li> Upon successful registration, an email is sent to your registered email ID. Activate + your account by clicking on the activation link provided.</li> </ul> - </div> </div> </div> - <div class="card"> - <div class="card-header" id="headingTwo"> - <h5 class="mb-0"> - <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> + </div> + <div class="card"> + <div class="card-header" id="headingTwo"> + <h5 class="mb-0"> + <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" + aria-expanded="false" aria-controls="collapseTwo"> 2. Submitting a proposal </button> - </h5> - </div> - <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion"> - <div class="card-body"> - Before you start creating the animation videos, you need to send a proposal. The proposal submission is divided into two stages, Stage 1 and Stage 2. The details for both the stages are given below. + </h5> + </div> + <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion"> + <div class="card-body"> + Before you start creating the animation videos, you need to send a proposal. The proposal + submission is divided into two stages, Stage 1 and Stage 2. The details for both the stages are + given below. <ul class="list-group"> - <li class="list-group-item"> <b class="text-center">Stage 1</b><hr/> - <ol> - <li>Once the account is activated and you are logged in, proposals for video ideas can be submitted. Click on “Send Proposal” in the drop-down list next to your username (in the top-right corner). - </li> - <li>Enter your <b>Category and Subcategory</b>. The Subcategory field refers to the specific subdomain in which the topic to be animated lies. </br> - For example, if any topic related to Newtonian motion is to be animated, the Category would be Physics and the Subcategory would be Classical Mechanics.<br> - <b>Note: </b>If there is any ambiguity regarding the Subcategory (or sub-categories) that the chosen topic comes under, enter your best guess after performing a Google Search. - </li> - <li>The Title field refers to the specific topic that you have chosen to animate. - Concerning the the previous example, your title would be something like “Angular Momentum” or “Newton’s Laws of Motion”.</li> - <li>The Outline field should ideally include: - <ul><li>a general description of the chosen topic,</li> - <li>the key points you intend to cover in your animation/ video,</li> - <li>the tools you might use</li></ul> - <b>Note: </b> If you haven’t zeroed-down on all the above specifics, try to mention a fair estimate. 150-300 words would be sufficient. - </li> - <li>The Tags field should be filled with keywords relating to your topic of animation (i.e., your Title). - Some of the possible tags for “Angular Momentum” are “Newtonian Physics”, “Classical Mechanics” and “Rotational Motion”.</li> - <li>Click on Save to Submit your proposal. You will now be able to view and edit your proposals on the proposals page. You can access this page by selecting “View Proposals” in the drop-down list next to your username in the top-right corner of the website.</li> - </ol> - </li> - <li class="list-group-item"> <b class="text-center">Stage 2</b><hr/> - <ol> - <li>Once you have submitted Stage 1 of the proposal, you will receive an email on your registered email within 3 working days. It will contain an attached Writer document (.odt), where specific details of the animation(s) proposed have to be filled in. </li> - <li>Further correspondence between the contributor and the moderator usually happens in the same email thread.</li> - <li>After the document has been submitted and has passed the moderator’s review, the proposal is cleared for submission on the FOSSEE Animations website. The contributor is notified of the same via email.</li> - </ol> - <hr> - Please note that the second form is completed and sent after the contributor has worked out the more precise details of their proposed animation. The moderators should get a fair idea of what the video you animate will consist of such as the approach to visualising a concept, the tools used and the books used for reference, among other things. - </li> + <li class="list-group-item"> <b class="text-center">Stage 1</b> + <hr /> + <ol> + <li>Once the account is activated and you are logged in, proposals for video ideas + can be submitted. Click on “Send Proposal” in the drop-down list next to your + username (in the top-right corner). + </li> + <li>Enter your <b>Category and Subcategory</b>. The Subcategory field refers to the + specific subdomain in which the topic to be animated lies. </br> + For example, if any topic related to Newtonian motion is to be animated, the + Category would be Physics and the Subcategory would be Classical Mechanics.<br> + <b>Note: </b>If there is any ambiguity regarding the Subcategory (or + sub-categories) that the chosen topic comes under, enter your best guess after + performing a Google Search. + </li> + <li>The Title field refers to the specific topic that you have chosen to animate. + Concerning the the previous example, your title would be something like “Angular + Momentum” or “Newton’s Laws of Motion”.</li> + <li>The Outline field should ideally include: + <ul> + <li>a general description of the chosen topic,</li> + <li>the key points you intend to cover in your animation/ video,</li> + <li>the tools you might use</li> + </ul> + <b>Note: </b> If you haven’t zeroed-down on all the above specifics, try to + mention a fair estimate. 150-300 words would be sufficient. + </li> + <li>The Tags field should be filled with keywords relating to your topic of + animation (i.e., your Title). + Some of the possible tags for “Angular Momentum” are “Newtonian Physics”, + “Classical Mechanics” and “Rotational Motion”.</li> + <li>Click on Save to Submit your proposal. You will now be able to view and edit + your proposals on the proposals page. You can access this page by selecting + “View Proposals” in the drop-down list next to your username in the top-right + corner of the website.</li> + </ol> + </li> + <li class="list-group-item"> <b class="text-center">Stage 2</b> + <hr /> + <ol> + <li>Once you have submitted Stage 1 of the proposal, you will receive an email on + your registered email within 3 working days. It will contain an attached Writer + document (.odt), where specific details of the animation(s) proposed have to be + filled in. </li> + <li>Further correspondence between the contributor and the moderator usually happens + in the same email thread.</li> + <li>After the document has been submitted and has passed the moderator’s review, the + proposal is cleared for submission on the FOSSEE Animations website. The + contributor is notified of the same via email.</li> + </ol> + <hr> + Please note that the second form is completed and sent after the contributor has worked + out the more precise details of their proposed animation. The moderators should get a + fair idea of what the video you animate will consist of such as the approach to + visualising a concept, the tools used and the books used for reference, among other + things. + </li> </ul> - </div> </div> </div> + </div> <div class="card"> - <div class="card-header" id="headingThree"> - <h5 class="mb-0"> - <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">3. - Creating your animation / visualisation: </button> - </h5> - </div> - <div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordion"> - <div class="card-body"> - <ul> - <li>You may use any tool for creating your animation. More than one tool may also be used, as per the discretion of the contributor. However, you are expected to use only open source tools such as manim, mayavi and blender. You may also use an open-source game engine. For more details contact: <a href="mailto:animations@fossee.in">animations@fossee.in</a></li> - <li>Submit the final video in a .mp4 format.</li> - <li>Any queries can be clarified by email or through the comments on the proposal submission page.</li> - <li>In case you feel that the animation video requires narration, you may provide a complementary script in a .txt file over email. A voiceover would be provided for the animations from FOSSEE. You may refer to the videos already published on the website for instances of animations with and without an additional script. Email <a href="mailto:animations@fossee.in">animations@fossee.in</a> if you want to add a script. </li> - <hr/> - <b>References for animations</b> - <li>You may refer to <a href="https://purusharthsaxena.wordpress.com/">this blog</a> and <a href="https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/">this blog</a> for getting started with <b>manim</b>. <a href="https://www.youtube.com/watch?v=r6OD07Qq2mw">Here's the link</a> for getting started with mayavi.</li> - </ul> - </div> - </div> + <div class="card-header" id="headingThree"> + <h5 class="mb-0"> + <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseThree" + aria-expanded="false" aria-controls="collapseThree">3. + Creating your animation / visualisation: </button> + </h5> + </div> + <div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordion"> + <div class="card-body"> + <ul> + <li>You may use any tool for creating your animation. More than one tool may also be used, + as per the discretion of the contributor. However, you are expected to use only open + source tools such as manim, mayavi and blender. You may also use an open-source game + engine. For more details contact: <a + href="mailto:animations@fossee.in">animations@fossee.in</a></li> + <li>Submit the final video in a .mp4 format.</li> + <li>Any queries can be clarified by email or through the comments on the proposal submission + page.</li> + <li>In case you feel that the animation video requires narration, you may provide a + complementary script in a .txt file over email. A voiceover would be provided for the + animations from FOSSEE. You may refer to the videos already published on the website for + instances of animations with and without an additional script. Email <a + href="mailto:animations@fossee.in">animations@fossee.in</a> if you want to add a + script. </li> + <hr /> + <b>References for animations</b> + <li>You may refer to <a href="https://purusharthsaxena.wordpress.com/">this blog</a> and <a + href="https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/">this + blog</a> for getting started with <b>manim</b>. <a + href="https://www.youtube.com/watch?v=r6OD07Qq2mw">Here's the link</a> for getting + started with mayavi.</li> + </ul> + </div> + </div> </div> <div class="card"> - <div class="card-header" id="headingFour"> - <h5 class="mb-0"> - <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour"> - 4. Uploading the final video - </button> - </h5> - </div> - <div id="collapseFour" class="collapse" aria-labelledby="headingFour" data-parent="#accordion"> - <div class="card-body"> - After submitting the Proposal - Form 2, and after the moderator has approved, you will receive a link on your proposals page for uploading the required video. FOSSEE notifies you of the same via email. - </div> - </div> + <div class="card-header" id="headingFour"> + <h5 class="mb-0"> + <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseFour" + aria-expanded="false" aria-controls="collapseFour"> + 4. Uploading the final video + </button> + </h5> + </div> + <div id="collapseFour" class="collapse" aria-labelledby="headingFour" data-parent="#accordion"> + <div class="card-body"> + After submitting the Proposal - Form 2, and after the moderator has approved, you will receive a + link on your proposals page for uploading the required video. FOSSEE notifies you of the same + via email. + </div> + </div> </div> <div class="card"> - <div class="card-header" id="headingFive"> - <h5 class="mb-0"> - <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseFive" aria-expanded="false" aria-controls="collapseFive"> - 5. Obtaining certificates - </button> - </h5> - </div> - <div id="collapseFive" class="collapse" aria-labelledby="headingFive" data-parent="#accordion"> - <div class="card-body"> - The criterion for obtaining a certificate from FOSSEE, IITB is that you should have successfully submitted and uploaded your animation on the FOSSEE animations website. - FOSSEE sends the certificate to your registered email within 15 working days. If you submit a bunch of closely related videos in a series, you receive a certificate for that set. Otherwise, for every standalone contribution, you receive a certificate. The certificate is issued by FOSSEE, IIT Bombay. - </div> - </div> + <div class="card-header" id="headingFive"> + <h5 class="mb-0"> + <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseFive" + aria-expanded="false" aria-controls="collapseFive"> + 5. Obtaining certificates + </button> + </h5> + </div> + <div id="collapseFive" class="collapse" aria-labelledby="headingFive" data-parent="#accordion"> + <div class="card-body"> + The criterion for obtaining a certificate from FOSSEE, IITB is that you should have successfully + submitted and uploaded your animation on the FOSSEE animations website. + FOSSEE sends the certificate to your registered email within 15 working days. If you submit a + bunch of closely related videos in a series, you receive a certificate for that set. Otherwise, + for every standalone contribution, you receive a certificate. The certificate is issued by + FOSSEE, IIT Bombay. + </div> + </div> </div> <div class="card"> - <div class="card-header" id="headingSix"> - <h5 class="mb-0"> - <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseSix" aria-expanded="false" aria-controls="collapseSix"> - 6. Acquiring the honorarium - </button> - </h5> - </div> - <div id="collapseSix" class="collapse" aria-labelledby="headingSix" data-parent="#accordion"> - <div class="card-body"> - <a href="https://animations.fossee.in/honorarium/">Click here</a> to learn about the procedure for receiving the honorarium. - </div> - </div> + <div class="card-header" id="headingSix"> + <h5 class="mb-0"> + <button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseSix" + aria-expanded="false" aria-controls="collapseSix"> + 6. Acquiring the honorarium + </button> + </h5> + </div> + <div id="collapseSix" class="collapse" aria-labelledby="headingSix" data-parent="#accordion"> + <div class="card-body"> + <a href="https://animations.fossee.in/honorarium/">Click here</a> to learn about the procedure + for receiving the honorarium. + </div> + </div> </div> </div> - </div> - </div> -{% endblock %} + </div> +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/honorarium.html b/fossee_manim/templates/fossee_manim/honorarium.html index 5fff216..b844482 100644 --- a/fossee_manim/templates/fossee_manim/honorarium.html +++ b/fossee_manim/templates/fossee_manim/honorarium.html @@ -1,56 +1,89 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Honorarium - {% endblock %} +{% block title %} +Honorarium +{% endblock %} {% block content %} - <script> - $(document).ready(function(){ - $('[data-toggle="tooltip"]').tooltip(); - }); - </script> - <style> - span { - background-color: #f2e680; - } - </style> +<script> + $(document).ready(function () { + $('[data-toggle="tooltip"]').tooltip(); + }); +</script> +<style> + span { + background-color: #f2e680; + } +</style> - <div class="container-fluid jumbotron" align = "justify" style="margin-top:20px; background-color: #e7edee;"> - <h1><center>Honorarium</center></h1> - <div class="container" style= "font-family: 'Lato', sans-serif;"> - <hr> +<div class="container-fluid jumbotron" align="justify" style="margin-top:20px; background-color: #e7edee;"> + <h1> + <center>Honorarium</center> + </h1> + <div class="container" style="font-family: 'Lato', sans-serif;"> + <hr> - <h2><center>Amount</center></h2> - <br> + <h2> + <center>Amount</center> + </h2> + <br> - <ol> - <li> The honorarium amount is assigned based on: - <ul> - <li> the complexity of the topic chosen for animation, </li> - <li> curation of the video </li> - <li> the contributor’s performance, curation of the video and the final output.</li> - </ul> - </li> - <li> The quality of the final video you submit, the complexity of the topic chosen, - the correctness/succinctness of the outline and timely submission are factors that - determine the honorarium amount you receive. If the contributor submits the video on time - and with a concise outline, he/she may receive an amount of Rs 1000 - Rs 1500 per video. - </li> - <li> A quality bonus of Rs 500-1000 per video can be granted if deemed fit by the reviewer. </li> - <li> <strong>The final amount is up to the discretion of the moderators.</strong></li> - </ol> - <br> <br> - <h2><center>Procedure</center></h2> - <br> - <p> A contributor can begin with the honorarium process only after submission of the final video and its release on the website. - <br>The procedure for acquiring the honorarium is as follows: + <ol> + <li> The honorarium amount is assigned based on: + <ul> + <li> the complexity of the topic chosen for animation, </li> + <li> curation of the video </li> + <li> the contributor’s performance, curation of the video and the final output.</li> + </ul> + </li> + <li> The quality of the final video you submit, the complexity of the topic chosen, + the correctness/succinctness of the outline and timely submission are factors that + determine the honorarium amount you receive. If the contributor submits the video on time + and with a concise outline, he/she may receive an amount of Rs 1000 - Rs 1500 per video. + </li> + <li> A quality bonus of Rs 500-1000 per video can be granted if deemed fit by the reviewer. </li> + <li> <strong>The final amount is up to the discretion of the moderators.</strong></li> + </ol> + <br> <br> + <h2> + <center>Procedure</center> + </h2> + <br> + <p> A contributor can begin with the honorarium process only after submission of the final video and its release + on the website. + <br>The procedure for acquiring the honorarium is as follows: <ol> <li>Download the forms given at the end of this page and print them out.</li> - <li>These forms are to be filled and sent to the address given at the bottom of this page. Please send ALL the forms in a SINGLE envelope. Forms that are not sent together are not considered under any circumstances.</li> - <li>After FOSSEE receives the filled-in honorarium forms, the honorarium amount is transferred to your bank account through NEFT. Fill in Bankdetails_Form.pdf with details of the bank account to which you want the honorarium to be transferred.</li> - <li>We generally process your honorarium within 45 days from the day we receive your forms. However, if you do not receive your money within 45 days of acknowledgement of forms received, please feel free to contact us; we are happy to assist you.</li> + <li>These forms are to be filled and sent to the address given at the bottom of this page. Please send + ALL the forms in a SINGLE envelope. Forms that are not sent together are not considered under any + circumstances.</li> + <li>After FOSSEE receives the filled-in honorarium forms, the honorarium amount is transferred to your + bank account through NEFT. Fill in Bankdetails_Form.pdf with details of the bank account to which + you want the honorarium to be transferred.</li> + <li>We generally process your honorarium within 45 days from the day we receive your forms. However, if + you do not receive your money within 45 days of acknowledgement of forms received, please feel free + to contact us; we are happy to assist you.</li> </ol> +<<<<<<< HEAD + <p><span>Please note that the honorarium processing only starts after we receive your completed honorarium + forms. Ensure that you have made a PAN card and submit the forms in time to avoid delays.</span> + <p> + <br> <br> + <h2> + <center>Forms</center> + </h2> + <br> + <p>Kindly print out the forms below, fill the required fields and mail them to the address:<p> + <ul> + <li> <a href="https://static.fossee.in/animations/forms/Copyright_Transfer.pdf"> + Copyright Transfer Form </a> </li> + <li> <a href="https://static.fossee.in/animations/forms/Contributor_Details.pdf"> + Contributor Details Form </a> </li> + <li> <a href="https://static.fossee.in/animations/forms/Bank_Details.pdf"> Bank Details + Form </a> </li> + <li> <a href="https://static.fossee.in/animations/forms/Receipt.pdf"> Receipt </a> </li> + </ul> +======= <p><span>Please note that the honorarium processing only starts after we receive your completed honorarium forms. Ensure that you have made a PAN card and submit the forms in time to avoid delays.</span><p> <br> <br> <h2><center>Forms</center></h2> @@ -63,5 +96,7 @@ <li> <a style="color: blue" href = "https://static.fossee.in/animations/forms/Receipt.pdf"> Receipt </a> </li> </ul> </div> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 </div> -{% endblock %} +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/index.html b/fossee_manim/templates/fossee_manim/index.html index 4a9cc6d..23d7d66 100644 --- a/fossee_manim/templates/fossee_manim/index.html +++ b/fossee_manim/templates/fossee_manim/index.html @@ -1,60 +1,82 @@ {% extends 'fossee_manim/base.html' %} {% block title %} - FOSSEE Animations Homepage +FOSSEE Animations Homepage {% endblock %} - {% block content %} - <div class="container-fluid jumbotron" align = "justify" style= "padding:0px; height: 550px;"> +{% block content %} +<div class="container-fluid jumbotron" align="justify" style="padding:0px; height: 550px;"> - <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel" style="margin-top: 0px"> - <ol class="carousel-indicators"> - <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li> - <li data-target="#carouselExampleIndicators" data-slide-to="1"></li> - <li data-target="#carouselExampleIndicators" data-slide-to="2"></li> - </ol> - <div class="carousel-inner"> + <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel" style="margin-top: 0px"> + <ol class="carousel-indicators"> + <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li> + <li data-target="#carouselExampleIndicators" data-slide-to="1"></li> + <li data-target="#carouselExampleIndicators" data-slide-to="2"></li> + </ol> + <div class="carousel-inner"> - <div class="carousel-item active"> - <img class="d-block w-100" src="{{ URL_ROOT }}/static/img/carousel1.png" alt="First slide" style= "height:550px;"> - <div class="carousel-caption col-md-4" style="float:left; font-family: 'Lato', sans-serif; text-align: left; margin-left: -20px; margin-bottom:15px"> - <h3><a style="font-family: 'Montserrat', sans-serif; font-weight: 500;">FOSSEE Animations</a></h3> - <h5>endeavors to be an extensive library - of community-curated videos on STEM topics - </h5> - </div> - </div> - <div class="carousel-item"> - <img class="d-block w-100" src="{{ URL_ROOT }}/static/img/carousel3.png" alt="Second slide" style= "height:550px;"> - <div class="carousel-caption col-md-3" style="float:right; font-family: 'Lato', sans-serif;"> - <h3><a style="font-family: 'Montserrat', sans-serif; font-weight: 500;">Anyone can contribute to the project</a></h3> - <h5> The only requirement is that the video should be made using <i>OpenSource</i> tools</h5>like Blender, Manim, Mayavi, etc. - </div> - </div> + <div class="carousel-item active"> + <img class="d-block w-100" src="{{ URL_ROOT }}/static/img/carousel1.png" alt="First slide" + style="height:550px;"> + <div class="carousel-caption col-md-4" + style="float:left; font-family: 'Lato', sans-serif; text-align: left; margin-left: -20px; margin-bottom:15px"> + <h3><a style="font-family: 'Montserrat', sans-serif; font-weight: 500;">FOSSEE Animations</a></h3> + <h5>endeavors to be an extensive library + of community-curated videos on STEM topics + </h5> + </div> + </div> + <div class="carousel-item"> + <img class="d-block w-100" src="{{ URL_ROOT }}/static/img/carousel3.png" alt="Second slide" + style="height:550px;"> + <div class="carousel-caption col-md-3" style="float:right; font-family: 'Lato', sans-serif;"> + <h3><a style="font-family: 'Montserrat', sans-serif; font-weight: 500;">Anyone can contribute to the + project</a></h3> + <h5> The only requirement is that the video should be made using <i>OpenSource</i> tools</h5>like + Blender, Manim, Mayavi, etc. + </div> + </div> - <div class="carousel-item"> - <img class="d-block w-100" src="{{ URL_ROOT }}/static/img/carousel2.png" alt="Third slide" style= "height:550px; "> - <div class="carousel-caption col-md-4" style="margin-left:560px; margin-bottom:250px;float:right; font-family: 'Lato', sans-serif; text-align:right"> - <h3><a style="font-family: 'Montserrat', sans-serif; font-weight: 500;">On successful submission</a></h3> - <h5>you receive a certificate and an<br> - honorarium from FOSSEE,<br>IIT-Bombay</h5> - </div> - </div> - </div> - <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev"> - <span class="carousel-control-prev-icon" aria-hidden="true"></span> - <span class="sr-only">Previous</span> - </a> - <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next"> - <span class="carousel-control-next-icon" aria-hidden="true"></span> - <span class="sr-only">Next</span> - </a> + <div class="carousel-item"> + <img class="d-block w-100" src="{{ URL_ROOT }}/static/img/carousel2.png" alt="Third slide" + style="height:550px; "> + <div class="carousel-caption col-md-4" + style="margin-left:560px; margin-bottom:250px;float:right; font-family: 'Lato', sans-serif; text-align:right"> + <h3><a style="font-family: 'Montserrat', sans-serif; font-weight: 500;">On successful submission</a> + </h3> + <h5>you receive a certificate and an<br> + honorarium from FOSSEE,<br>IIT-Bombay</h5> </div> </div> + </div> + <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev"> + <span class="carousel-control-prev-icon" aria-hidden="true"></span> + <span class="sr-only">Previous</span> + </a> + <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next"> + <span class="carousel-control-next-icon" aria-hidden="true"></span> + <span class="sr-only">Next</span> + </a> + </div> +</div> - <!--Infographics--> +<!--Infographics--> +<<<<<<< HEAD +<div class="jumbotron row text-center" id="infg" + style="background-color: white; margin: 10px; font-family:'Lato', sans-serif; font-weight:400"> + <div class="container text-center"> + <h1 style="color: #e45700; font-family:'Montserrat', sans-serif;">HOW IT WORKS</h1> + <img class="img-fluid d-block text-center" width="100%" src="{{ URL_ROOT }}/static/img/info.svg" + alt="Infographic"> + <br> + Want to know more? Visit our <a href="{{URL_ROOT}}/guidelines/" + style="background-color:#157b80; color:white;">Guidelines</a> page! + </div> +</div> +{% endblock %} +======= <div class="jumbotron row text-center" id= "infg" style="background-color: white; margin: 10px; font-family:'Lato', sans-serif; font-weight:400"> <div class="container text-center"> <h1 style="color: #e45700; font-family:'Montserrat', sans-serif;">HOW IT WORKS</h1> @@ -64,3 +86,4 @@ </div> </div> {% endblock %} +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 diff --git a/fossee_manim/templates/fossee_manim/library.html b/fossee_manim/templates/fossee_manim/library.html index 259eec4..7593b07 100644 --- a/fossee_manim/templates/fossee_manim/library.html +++ b/fossee_manim/templates/fossee_manim/library.html @@ -1,62 +1,64 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - FOSSEE Animations | Topic Library - {% endblock %} +{% block title %} +FOSSEE Animations | Topic Library +{% endblock %} - {% block content %} - <div class="container-fluid jumbotron" align = "justify" style="padding: 50px; background-color: transparent;"> - <center><h2>Library of Topics</h2></center> - <div class="container" style= "font-family: 'Lato', sans-serif; background-color: transparent;"> - <center style= "color: #555555;"> - Muddled about what you could possibly animate? <br> - You can pick up topics from the lists below! <br> - <!-- We like to call it "<i>low-hanging fruit</i>". --> - </center> - <hr> - <br> - <div class="row"> - <!-- Math Category --> - <div class="col-md-4"> - <div class="card mb-4 box-shadow"> - <a> - <img class="card-img-top" alt="Category Thumbnail"> - </a> - <div class="card-body" align= "center"> - <a href="{% url 'libraryMath' %}"> - <h4 class="card-text" style="color: #157b80;">Mathematics</h4> - </a> - </div> +{% block content %} +<div class="container-fluid jumbotron" align="justify" style="padding: 50px; background-color: transparent;"> + <center> + <h2>Library of Topics</h2> + </center> + <div class="container" style="font-family: 'Lato', sans-serif; background-color: transparent;"> + <center style="color: #555555;"> + Muddled about what you could possibly animate? <br> + You can pick up topics from the lists below! <br> + <!-- We like to call it "<i>low-hanging fruit</i>". --> + </center> + <hr> + <br> + <div class="row"> + <!-- Math Category --> + <div class="col-md-4"> + <div class="card mb-4 box-shadow"> + <a> + <img class="card-img-top" alt="Category Thumbnail"> + </a> + <div class="card-body" align="center"> + <a href="{% url 'libraryMath' %}"> + <h4 class="card-text" style="color: #157b80;">Mathematics</h4> + </a> </div> - </div> - <!-- Physics Category --> - <div class="col-md-4"> - <div class="card mb-4 box-shadow"> - <a> - <img class="card-img-top" alt="Category Thumbnail"> - </a> - <div class="card-body" align= "center"> - <a href="{% url 'libraryPhys' %}"> - <h4 class="card-text" style="color: #157b80;">Physics</h4> - </a> - </div> + </div> + </div> + <!-- Physics Category --> + <div class="col-md-4"> + <div class="card mb-4 box-shadow"> + <a> + <img class="card-img-top" alt="Category Thumbnail"> + </a> + <div class="card-body" align="center"> + <a href="{% url 'libraryPhys' %}"> + <h4 class="card-text" style="color: #157b80;">Physics</h4> + </a> </div> - </div> - <!-- CS Category --> - <div class="col-md-4"> - <div class="card mb-4 box-shadow"> - <a> - <img class="card-img-top" alt="Category Thumbnail"> - </a> - <div class="card-body" align= "center"> - <a href="{% url 'libraryCS' %}"> - <h4 class="card-text" style="color: #157b80;">Computer Science</h4> - </a> - </div> + </div> + </div> + <!-- CS Category --> + <div class="col-md-4"> + <div class="card mb-4 box-shadow"> + <a> + <img class="card-img-top" alt="Category Thumbnail"> + </a> + <div class="card-body" align="center"> + <a href="{% url 'libraryCS' %}"> + <h4 class="card-text" style="color: #157b80;">Computer Science</h4> + </a> </div> - </div> - <!-- end of library --> + </div> </div> - </div> + <!-- end of library --> + </div> </div> - {% endblock %} +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/libraryCS.html b/fossee_manim/templates/fossee_manim/libraryCS.html index a40408d..30c09a2 100644 --- a/fossee_manim/templates/fossee_manim/libraryCS.html +++ b/fossee_manim/templates/fossee_manim/libraryCS.html @@ -1,16 +1,18 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - FOSSEE Animations | Library of Computer Science Topics - {% endblock %} +{% block title %} +FOSSEE Animations | Library of Computer Science Topics +{% endblock %} - {% block content %} - <div class="container-fluid jumbotron" align = "justify" style="background-color: transparent"> - <center><h2>CS Topics</h2></center> - <div class="container" style= "font-family: 'Lato', sans-serif; background-color: transparent;"> +{% block content %} +<div class="container-fluid jumbotron" align="justify" style="background-color: transparent"> + <center> + <h2>CS Topics</h2> + </center> + <div class="container" style="font-family: 'Lato', sans-serif; background-color: transparent;"> <hr> <script src="https://gist.github.com/Sh-Ac/59779adf6cd8ff74e451567a1868a36d.js"></script> - </div> </div> +</div> - {% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/libraryMath.html b/fossee_manim/templates/fossee_manim/libraryMath.html index cbdd765..0735a60 100644 --- a/fossee_manim/templates/fossee_manim/libraryMath.html +++ b/fossee_manim/templates/fossee_manim/libraryMath.html @@ -1,16 +1,18 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - FOSSEE Animations | Library of Mathematics Topics - {% endblock %} +{% block title %} +FOSSEE Animations | Library of Mathematics Topics +{% endblock %} {% block content %} - <div class="container-fluid jumbotron" align = "justify" style="background-color: transparent"> - <center><h2>Mathematics Topics</h2></center> - <div class="container" style= "font-family: 'Lato', sans-serif; background-color: transparent;"> +<div class="container-fluid jumbotron" align="justify" style="background-color: transparent"> + <center> + <h2>Mathematics Topics</h2> + </center> + <div class="container" style="font-family: 'Lato', sans-serif; background-color: transparent;"> <hr> - <script src="https://gist.github.com/Jar-win/b8207bb59110a459ab7a9089144d1621.js"></script> - </div> + <script src="https://gist.github.com/Jar-win/b8207bb59110a459ab7a9089144d1621.js"></script> </div> +</div> - {% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/libraryPhys.html b/fossee_manim/templates/fossee_manim/libraryPhys.html index 883a59b..c780c1d 100644 --- a/fossee_manim/templates/fossee_manim/libraryPhys.html +++ b/fossee_manim/templates/fossee_manim/libraryPhys.html @@ -1,16 +1,18 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - FOSSEE Animations | Library of Physics Topics - {% endblock %} +{% block title %} +FOSSEE Animations | Library of Physics Topics +{% endblock %} {% block content %} - <div class="container-fluid jumbotron" align = "justify" style="background-color: transparent"> - <center><h2>Physics Topics</h2></center> - <div class="container" style= "font-family: 'Lato', sans-serif; background-color: transparent;"> +<div class="container-fluid jumbotron" align="justify" style="background-color: transparent"> + <center> + <h2>Physics Topics</h2> + </center> + <div class="container" style="font-family: 'Lato', sans-serif; background-color: transparent;"> <hr> <script src="https://gist.github.com/Jar-win/e7601528c911fe35250d19b86b652a02.js"></script> - </div> </div> +</div> - {% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/login.html b/fossee_manim/templates/fossee_manim/login.html index fd8580d..c27103e 100644 --- a/fossee_manim/templates/fossee_manim/login.html +++ b/fossee_manim/templates/fossee_manim/login.html @@ -1,29 +1,32 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Login - {% endblock %} +{% block title %} +Login +{% endblock %} {% block content %} - <div class="container-fluid jumbotron" align="justify" style="margin-top:20px; background-color: #e7edee;"> - <center> +<div class="container-fluid jumbotron" align="justify" style="margin-top:20px; background-color: #e7edee;"> + <center> <h1>Login</h1> <hr> - <div class="container" style= "font-family: 'Lato', sans-serif;"> + <div class="container" style="font-family: 'Lato', sans-serif;"> <form method="post"> - {% csrf_token %} - <table class="table table-bordered"> - {{ form.as_table }} - <br> - <br> - </table> - <button class="btn btn-success btn-sm" type="submit" style="background-color:#e45700;color:white; border:0px">Login</button> - <a href="{{URL_ROOT}}/forgotpassword/" class="btn btn-default btn-sm" style="color:#157b80; ">Forgot Password?</a> + {% csrf_token %} + <table class="table table-bordered"> + {{ form.as_table }} + <br> + <br> + </table> + <button class="btn btn-success btn-sm" type="submit" + style="background-color:#e45700;color:white; border:0px">Login</button> + <a href="{{URL_ROOT}}/forgotpassword/" class="btn btn-default btn-sm" style="color:#157b80; ">Forgot + Password?</a> </form> <br> - <p>Don't have an account yet? <a href="{{URL_ROOT}}/register/" style="background-color:#157b80; color:white;">Register here!</a></p> - </center> - <br> - </div> - </div> - {% endblock %} + <p>Don't have an account yet? <a href="{{URL_ROOT}}/register/" + style="background-color:#157b80; color:white;">Register here!</a></p> + </center> + <br> +</div> +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/logout.html b/fossee_manim/templates/fossee_manim/logout.html index 03f655b..61b2f68 100644 --- a/fossee_manim/templates/fossee_manim/logout.html +++ b/fossee_manim/templates/fossee_manim/logout.html @@ -1,10 +1,19 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Logged out - {% endblock %} +{% block title %} +Logged out +{% endblock %} +<<<<<<< HEAD +{% block content %} +<div class="container jumbotron" align="center" style="margin-top: 30px;"> + <br> + <h3>You have logged out successfully.</h3> + <h4>If you want to Login again please <a href="{{ URL_ROOT}}/login/">click here</a></h4> + <br> +</div> +======= {% block content %} <div class="container jumbotron" align="center" style= "margin-top: 30px;"> <br> @@ -12,5 +21,6 @@ <h4>If you want to Login again please <a href="{{ URL_ROOT}}/login/" style="color: blue">click here</a></h4> <br> </div> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 - {% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/outreach.html b/fossee_manim/templates/fossee_manim/outreach.html index 9299023..f0314eb 100644 --- a/fossee_manim/templates/fossee_manim/outreach.html +++ b/fossee_manim/templates/fossee_manim/outreach.html @@ -1,13 +1,22 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - FOSSEE Animations | Outreach - {% endblock %} +{% block title %} +FOSSEE Animations | Outreach +{% endblock %} {% block content %} +<<<<<<< HEAD +<div class="container-fluid jumbotron" align="justify" style="background-color: transparent"> + <center> + <h2>FOSSEE Animations Outreach</h2> + </center> + <hr> +</div> +======= <div class="container-fluid jumbotron" align = "justify" style="background-color: transparent; margin-bottom: 103px; "> <center><h2>FOSSEE Animations Outreach</h2></center> <hr> </div> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 - {% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/profile_updated.html b/fossee_manim/templates/fossee_manim/profile_updated.html index 68cf636..06c6309 100644 --- a/fossee_manim/templates/fossee_manim/profile_updated.html +++ b/fossee_manim/templates/fossee_manim/profile_updated.html @@ -1,21 +1,20 @@ - {% extends 'fossee_manim/base.html' %} {% block title %} - Profile Changing +Profile Changing {% endblock %} - {% block extra %} - <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> - <script src="{{URL_ROOT}}/static/fossee_manim/js/bootstrap-3.3.7.min.js"></script> - {% endblock %} +{% block extra %} +<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> +<script src="{{URL_ROOT}}/static/fossee_manim/js/bootstrap-3.3.7.min.js"></script> +{% endblock %} {% block content %} <br> <br> <br> - <div class="container"> - <div class="jumbotron row"> - <h3>Your Profile has changed {{ user.first_name }}</h3> - </div> +<div class="container"> + <div class="jumbotron row"> + <h3>Your Profile has changed {{ user.first_name }}</h3> </div> - <br> -{% endblock %} +</div> +<br> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/proposal_status.html b/fossee_manim/templates/fossee_manim/proposal_status.html index 2091a46..e7c8f35 100644 --- a/fossee_manim/templates/fossee_manim/proposal_status.html +++ b/fossee_manim/templates/fossee_manim/proposal_status.html @@ -1,13 +1,60 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Proposal Status - {% endblock %} +{% block title %} + Proposal Status +{% endblock %} {% block content %} -<div class = "jumbotron" style = "background-color: white; margin-top: 0px;"> - <div class="container" align="center"> + <div class="jumbotron" style="background-color: white; margin-top: 0px;"> + <div class="container" align="center"> +<<<<<<< HEAD + <h2> Proposal Status </h2> + <hr> + <table class="table table-hover" style="font-family: 'Lato', sans-serif;"> + <thead> + <tr> + <th>Title</th> + <th>Status</th> + <th>Created Date</th> + {% if request.user.profile.position == 'reviewer' %} + <th>Contributor Name</th> + <th>Mail Status</th> + {% endif %} + </tr> + </thead> + {% for an in anime %} + <tbody> + <tr> + <td>{{ an.title }}</td> + {% if an.status == 'rejected' %} + <td><span class="text-danger">{{ an.status }}</span></td> + {% elif an.status == 'released' %} + <td><span class="text-success">{{ an.status }}</span></td> + {% else %} + <td><span class="text-info">{{ an.status }}</span></td> + {% endif %} + <td><span class="badge">{{ an.created }}</span></td> + {% if request.user.profile.position == 'reviewer' %} + <td>{{ an.contributor.get_full_name }}</td> + <td>{{ an.contributor.get_full_name }}</td> + {% endif %} + <td><a href="{% url 'edit_proposal' an.id %}"> + <button type="button" class="btn btn-info" + id="btnblue">Edit + </button> + </a></td> + {% if request.user.profile.position == 'reviewer' %} + <td><a href="{% url 'delete_proposal' an.id %}"> + <button type="button" class="btn btn-info" id="btnred">Delete</button> + </a></td> + {% endif %} + </tr> + </tbody> + {% endfor %} + </table> + </div> +======= <h2> Proposal Status </h2> <hr> <table class="table table-hover" style= "font-family: 'Lato', sans-serif;"> @@ -43,34 +90,35 @@ {% endfor %} </table> </div> +>>>>>>> cfdc41deed280bddbcc6c3cf45e30f33ea139e88 - <!-- Page Navigation --> - <div class="container"> - <div class="Page-Nav" align="center"> - <nav aria-label="Page navigation"> - <ul class="pagination pagination-sm"> - <li class="page-item"> - {% if anime.has_previous %} - <a class="page-link" tabindex="-1" - href="?page={{ anime.previous_page_number }}">Prev</a> - {% endif %} - </li> - <li class="page-item"> - <span class="current" > - Page {{ anime.number }} of {{ anime.paginator.num_pages }} - </span> - </li> - <li class="page-item"> - {% if anime.has_next %} - <a class="page-link" href="?page={{ anime.next_page_number }}"> Next - </a> - {% endif %} - </li> - </ul> - </nav> - </div> - </div> -</div> + <!-- Page Navigation --> + <div class="container"> + <div class="Page-Nav" align="center"> + <nav aria-label="Page navigation"> + <ul class="pagination pagination-sm"> + <li class="page-item"> + {% if anime.has_previous %} + <a class="page-link" tabindex="-1" + href="?page={{ anime.previous_page_number }}">Prev</a> + {% endif %} + </li> + <li class="page-item"> + <span class="current"> + Page {{ anime.number }} of {{ anime.paginator.num_pages }} + </span> + </li> + <li class="page-item"> + {% if anime.has_next %} + <a class="page-link" href="?page={{ anime.next_page_number }}"> Next + </a> + {% endif %} + </li> + </ul> + </nav> + </div> + </div> + </div> - {% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/register.html b/fossee_manim/templates/fossee_manim/register.html index e21c5fa..cccfd87 100644 --- a/fossee_manim/templates/fossee_manim/register.html +++ b/fossee_manim/templates/fossee_manim/register.html @@ -1,39 +1,41 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Register - {% endblock %} +{% block title %} +Register +{% endblock %} {% block content %} - <style type="text/css"> - label.required::after { - content: "*"; - color: red; - } - .errorlist { - color: red; - } - </style> +<style type="text/css"> + label.required::after { + content: "*"; + color: red; + } - <div class="container" > - <br> - <center> + .errorlist { + color: red; + } +</style> + +<div class="container"> + <br> + <center> <h1>Contributor Registration Form</h1> <br> <form action="" method="post"> {% csrf_token %} - <table class="table table-bordered"> - {{ form.as_table }} - </table> + <table class="table table-bordered"> + {{ form.as_table }} + </table> - <button class="btn btn-success" type="submit" style="background-color: #157b80; border-width:0px;">Register</button> + <button class="btn btn-success" type="submit" + style="background-color: #157b80; border-width:0px;">Register</button> </form><br> - </center> - <!-- Activate when reviwers registeration starts --> - <!-- <div class="alert alert-info"> + </center> + <!-- Activate when reviwers registeration starts --> + <!-- <div class="alert alert-info"> <strong>Info!</strong> reviwerss, please wait for our admin approval, if your reviwers account is not activated in 7 days, please mail us at workshops[at]fossee[dot]in </div> --> - <br> - </div> -{% endblock %} + <br> +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/search_results.html b/fossee_manim/templates/fossee_manim/search_results.html index 303b735..1eeba26 100644 --- a/fossee_manim/templates/fossee_manim/search_results.html +++ b/fossee_manim/templates/fossee_manim/search_results.html @@ -1,35 +1,37 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Search Result - {% endblock %} +{% block title %} +Search Result +{% endblock %} {% block content %} <br> <br> <div class="container-fluid jumbotron" style="margin-top:20px"> - {% if s_result %} - {% for anime in s_result %} - <div class="row"> - <div class="col-md-4" > - <a href="{% url 'video' anime.id %}" > - <span class="fa fa-play fa-4x" id="play-btn"></span> - <img height="90%" width="100%" src="{{ anime.thumbnail.url }}"> - </a> - </div> - <div class="col-md-4"> - <p style="color:#157b80; font-size: 300%;"> {{ anime.animation.title }} </p> - <p style="color:black; font-size: 100%;"> {{ anime.animation.description | truncatewords:5}} </p> - <a target="_blank" href="{{ anime.animation.github }}"><p style="font-size: 70%;"> {{ anime.animation.github }} </p></a> - </div> - </div> - <hr> - {% endfor %} - {% else %} - <h3>No Results Found </h3> - <hr> - {% endif %} + {% if s_result %} + {% for anime in s_result %} + <div class="row"> + <div class="col-md-4"> + <a href="{% url 'video' anime.id %}"> + <span class="fa fa-play fa-4x" id="play-btn"></span> + <img height="90%" width="100%" src="{{ anime.thumbnail.url }}"> + </a> + </div> + <div class="col-md-4"> + <p style="color:#157b80; font-size: 300%;"> {{ anime.animation.title }} </p> + <p style="color:black; font-size: 100%;"> {{ anime.animation.description | truncatewords:5}} </p> + <a target="_blank" href="{{ anime.animation.github }}"> + <p style="font-size: 70%;"> {{ anime.animation.github }} </p> + </a> + </div> + </div> + <hr> + {% endfor %} + {% else %} + <h3>No Results Found </h3> + <hr> + {% endif %} <br> </div> <br> -{% endblock %} +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/send_proposal.html b/fossee_manim/templates/fossee_manim/send_proposal.html index b17e2bd..b9214c2 100644 --- a/fossee_manim/templates/fossee_manim/send_proposal.html +++ b/fossee_manim/templates/fossee_manim/send_proposal.html @@ -1,47 +1,49 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - Send Proposals - {% endblock %} +{% block title %} +Send Proposals +{% endblock %} - {% block content %} - {% if messages %} - <ul class="messages"> - {% for message in messages %} - <div class="alert alert-{{ message.tags }}"> - <li {% if message.tags %} class="{{ message.tags }}"{% endif %}> {{ message }} - </li> - </div> - {% endfor %} - </ul> - {% endif %} +{% block content %} +{% if messages %} +<ul class="messages"> + {% for message in messages %} + <div class="alert alert-{{ message.tags }}"> + <li {% if message.tags %} class="{{ message.tags }}" {% endif %}> {{ message }} + </li> + </div> + {% endfor %} +</ul> +{% endif %} + +<div class="container-fluid jumbotron" align="center" style="background-color: white;"> + <h1> + <center>Project Proposal</center> + </h1> + <hr> + <div class="alert alert-info" style="background-color: #c2eff4; color: #157b80;"> + Please Note: If you're not serious about creating animations, do not send us a proposal. + Fake submissions can result in permanent ban. + </div> - <div class="container-fluid jumbotron" align="center" style="background-color: white;"> - <h1><center>Proposal - Stage 1</center></h1> - <hr> - <div class="alert alert-info" style= "background-color: #c2eff4; color: #157b80;"> - Please Note: If you're not serious about creating animations, do not send us a proposal. - Fake submissions can result in permanent ban. - </div> - - <form method="post"> - {% csrf_token %} - <br/> - <table> - {{ form.as_table }} - </table> - <br> - <br> - <button class="btn btn-success" id = "btnblue" type="submit">Save</button> - </form> + <form method="post"> + {% csrf_token %} + <br /> + <table> + {{ form.as_table }} + </table> + <br> + <br> + <button class="btn btn-success" id="btnblue" type="submit">Save</button> + </form> - <!-- Initialize Quill editor --> - <script> - var quill = new Quill('#custom_editor', { - theme: 'snow' - }); - </script> + <!-- Initialize Quill editor --> + <script> + var quill = new Quill('#custom_editor', { + theme: 'snow' + }); + </script> - </div> - {% endblock %} +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/upload_success.html b/fossee_manim/templates/fossee_manim/upload_success.html index 4628d97..ca0da8d 100644 --- a/fossee_manim/templates/fossee_manim/upload_success.html +++ b/fossee_manim/templates/fossee_manim/upload_success.html @@ -1,29 +1,27 @@ - {% extends 'fossee_manim/base.html' %} {% block title %} - Upload success +Upload success {% endblock %} - {% block extra %} - <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> - <script src="{{URL_ROOT}}/static/fossee_manim/js/bootstrap-3.3.7.min.js"></script> - <script type="text/javascript"> - window.setTimeout(function() - { - location.href="{% url 'proposal_status' %}" - }, 9000); +{% block extra %} +<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> +<script src="{{URL_ROOT}}/static/fossee_manim/js/bootstrap-3.3.7.min.js"></script> +<script type="text/javascript"> + window.setTimeout(function () { + location.href = "{% url 'proposal_status' %}" + }, 9000); </script> - {% endblock %} +{% endblock %} {% block content %} - <div class="container"> - <br><br> - <div class="jumbotron"> - <h3><strong>Congratulations!</strong>Your video uploaded successfully!</h3> - <br> - <h5><strong>If you uploaded any video before this, it will be automatically overridden by this upload</h5> - </div> +<div class="container"> + <br><br> + <div class="jumbotron"> + <h3><strong>Congratulations!</strong>Your video uploaded successfully!</h3> + <br> + <h5><strong>If you uploaded any video before this, it will be automatically overridden by this upload</h5> </div> -{% endblock %} +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/video.html b/fossee_manim/templates/fossee_manim/video.html index e7cf6b3..5ac8314 100644 --- a/fossee_manim/templates/fossee_manim/video.html +++ b/fossee_manim/templates/fossee_manim/video.html @@ -1,79 +1,83 @@ {% extends 'fossee_manim/base.html' %} - {% block title %} - FOSSEE Animation - {% endblock %} +{% block title %} +FOSSEE Animation +{% endblock %} {% block content %} - <div class="container" > - <div class="row" > - <div class="col-md-12" > - <br> - <video width="100%" height="90%" controls> - <source src="{{video.0.video_path.url}}" type="video/mp4"> - </video> - <div class="row"> - <div class="col-md-8"> - <p style="color: #157b80; font-size: 200%; float: left;"> {{ video.0.animation.title }} </p> - </div> - <div class="col-md-4"> - <p style="font-size: 70%; float: right;"> {{ video.0.animation.subcategory }} </p> +<div class="container"> + <div class="row"> + <div class="col-md-12"> + <br> + <video width="100%" height="90%" controls> + <source src="{{video.0.video_path.url}}" type="video/mp4"> + </video> + <div class="row"> + <div class="col-md-8"> + <p style="color: #157b80; font-size: 200%; float: left;"> + {{ video.0.animation.title }} </p> + </div> + <div class="col-md-4"> + <p style="font-size: 70%; float: right;"> {{ video.0.animation.subcategory }} + </p> + </div> </div> - </div> - <br> - </div> + <br> + </div> - </div> - <div class="row"> + </div> + <div class="row"> <div class="col-md-10"> - <hr> - <br> - <p style="color:black; font-size: 100%; float: left;"> - {{ video.0.animation.outline|safe }} - </p> - <br> - </div> - </div> - <hr> - <div class="row"> - {% if reco %} - {% for item in reco %} + <hr> + <br> + <p style="color:black; font-size: 100%; float: left;"> + {{ video.0.animation.outline|safe }} + </p> + <br> + </div> + </div> + <hr> + <div class="row"> + {% if reco %} + {% for item in reco %} <div class="col-md-4"> - <a href="{% url 'video' item.id %}" > + <a href="{% url 'video' item.id %}"> <span class="fa fa-play fa-4x" id="play-btn"></span> <img height="95%" width="95%" src="{{ item.thumbnail.url }}"> </a> </div> - {% endfor %} - {% endif %} - </div> + {% endfor %} + {% endif %} + </div> <div> - <br><br> - <h2>Comments</h2> - <div> - <form method="POST"> - <br> - {% csrf_token %} - {{ comment_form.as_p }} - <button type="submit" class="btn btn-success">Post</button> - </form> - </div> - <hr style="background-color: #fff; + <br><br> + <h2>Comments</h2> + <div> + <form method="POST"> + <br> + {% csrf_token %} + {{ comment_form.as_p }} + <button type="submit" class="btn btn-success">Post</button> + </form> + </div> + <hr style="background-color: #fff; border-top: 5px double #8c8b8b;"> <table> - {% for comment in comments %} - <tbody> - <tr> - <td> - <h5>{{ comment.commentor.profile.user.get_full_name }} | {{ comment.created_date | date }}</h5> - <h6 style="background-color: #ecf0f1; padding:10px;">{{ comment.comment }}</h6> - <hr style="border-top: 0.5px solid #8c8b8b;"> - </td> - </tr> - </tbody> - {% endfor %} - </table> - <br> + {% for comment in comments %} + <tbody> + <tr> + <td> + <h5>{{ comment.commentor.profile.user.get_full_name }} | + {{ comment.created_date | date }}</h5> + <h6 style="background-color: #ecf0f1; padding:10px;"> + {{ comment.comment }}</h6> + <hr style="border-top: 0.5px solid #8c8b8b;"> + </td> + </tr> + </tbody> + {% endfor %} + </table> + <br> </div> - </div> -{% endblock %} +</div> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/fossee_manim/view_profile.html b/fossee_manim/templates/fossee_manim/view_profile.html index 1edf689..817099c 100644 --- a/fossee_manim/templates/fossee_manim/view_profile.html +++ b/fossee_manim/templates/fossee_manim/view_profile.html @@ -1,56 +1,90 @@ {% extends 'fossee_manim/base.html' %} {% block title %} - View Profile +View Profile {% endblock %} - {% block extra %} - <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> - <script src="{{URL_ROOT}}/static/fossee_manim/js/bootstrap-3.3.7.min.js"></script> - {% endblock %} +{% block extra %} +<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> +<script src="{{URL_ROOT}}/static/fossee_manim/js/bootstrap-3.3.7.min.js"></script> +{% endblock %} {% csrf_token %} {% block content %} - <div class="container jumbotron" style="background-color:white;"> - <center> <h1> View Profile </h1> </center> - <br> +<div class="container jumbotron" style="background-color:white;"> + <center> + <h1> View Profile </h1> + </center> + <br> <table class="table table-bordered"> - <tr> - <th><label for="id_first_name"><h5>First name:</h5></label></th> - <th><label for="id_first_name"><h5>{{ user.first_name }}</h5></label></th> - </tr> - <tr> - <th><label for="id_last_name"><h5>Last name:</h5></label></th> - <th><label for="id_last_name"><h5>{{ user.last_name }}</h5></label></th> - </tr> - <tr> - <th><label for="id_email"><h5>Email:</h5></label></th> - <th><label for="id_email"><h5>{{ user.email }}</h5></label></th> - </tr> - <tr> - <th><label for="id_institute"><h5>Institute:</h5></label></th> - <th><label for="id_institute"><h5>{{ user.profile.institute }}</h5></label></th> - </tr> - <tr> - <th><label for="id_phone_number"><h5>Phone Number:</h5></label></th> - <th><label for="id_phone_number"><h5>{{ user.profile.phone_number }}</h5></label></th> - </tr> - <tr> - <th><label for="id_department"><h5>Department:</h5></label></th> - <th><label for="id_department"><h5>{{ user.profile.department }}</h5></label></th> - </tr> - <tr> - <th><label for="id_location"><h5>Location:</h5></label></th> - <th><label for="id_location"><h5>{{ user.profile.location }}</h5></label></th> - </tr> - <tr> - <th><label for="id_position"><h5>Position:</h5></label></th> - <th><label for="id_position"><h5>{{ user.profile.position }}</h5></label></th> - </tr> + <tr> + <th><label for="id_first_name"> + <h5>First name:</h5> + </label></th> + <th><label for="id_first_name"> + <h5>{{ user.first_name }}</h5> + </label></th> + </tr> + <tr> + <th><label for="id_last_name"> + <h5>Last name:</h5> + </label></th> + <th><label for="id_last_name"> + <h5>{{ user.last_name }}</h5> + </label></th> + </tr> + <tr> + <th><label for="id_email"> + <h5>Email:</h5> + </label></th> + <th><label for="id_email"> + <h5>{{ user.email }}</h5> + </label></th> + </tr> + <tr> + <th><label for="id_institute"> + <h5>Institute:</h5> + </label></th> + <th><label for="id_institute"> + <h5>{{ user.profile.institute }}</h5> + </label></th> + </tr> + <tr> + <th><label for="id_phone_number"> + <h5>Phone Number:</h5> + </label></th> + <th><label for="id_phone_number"> + <h5>{{ user.profile.phone_number }}</h5> + </label></th> + </tr> + <tr> + <th><label for="id_department"> + <h5>Department:</h5> + </label></th> + <th><label for="id_department"> + <h5>{{ user.profile.department }}</h5> + </label></th> + </tr> + <tr> + <th><label for="id_location"> + <h5>Location:</h5> + </label></th> + <th><label for="id_location"> + <h5>{{ user.profile.location }}</h5> + </label></th> + </tr> + <tr> + <th><label for="id_position"> + <h5>Position:</h5> + </label></th> + <th><label for="id_position"> + <h5>{{ user.profile.position }}</h5> + </label></th> + </tr> </table> - <br> - <a class="btn btn-primary pull-right" href="{{ URL_ROOT }}/edit_profile/" id= "btnblue">Edit Profile</a> - </div> - <br><br> -{% endblock %} + <br> + <a class="btn btn-primary pull-right" href="{{ URL_ROOT }}/edit_profile/" id="btnblue">Edit Profile</a> +</div> +<br><br> +{% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/registration/base.html b/fossee_manim/templates/registration/base.html index 495831d..e6f7a11 100644 --- a/fossee_manim/templates/registration/base.html +++ b/fossee_manim/templates/registration/base.html @@ -1,99 +1,104 @@ <!DOCTYPE html> <html> + <head> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title> - {% block title %} - HomePage - {% endblock %} - </title> - <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title> + {% block title %} + HomePage + {% endblock %} + </title> + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> - <link rel="stylesheet" href="{{ URL_ROOT }}/static/css/sticky-footer.css" type="text/css" /> - <!-- favicon --> - <link rel="shortcut icon" type="image/png" href="{{ URL_ROOT}}/"/> + <link rel="stylesheet" href="{{ URL_ROOT }}/static/css/sticky-footer.css" type="text/css" /> + <!-- favicon --> + <link rel="shortcut icon" type="image/png" href="{{ URL_ROOT}}/" /> </head> - <!-- For js/ajax and other related scripts --> - {% block extra %} - - {% endblock %} +<!-- For js/ajax and other related scripts --> +{% block extra %} + +{% endblock %} <body style="overflow: scroll;"> - {% block header %} - <nav class="navbar navbar-expand-lg navbar-custom"> - <a class="navbar-brand" href="#">FOSSEE Animations</a> - <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" - aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> - <span class="navbar-toggler-icon">=</span> - </button> - - <div class="collapse navbar-collapse" id="navbarSupportedContent"> - <ul class="navbar-nav mr-auto"> - <form class="form-inline" method="POST" action="/search/"> - {% csrf_token %} - <input class="form-control mr-sm-2" id="sbox" name="sbox" type="search" placeholder="Search" aria-label="Search"> - <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> - </form> - <li class="nav-item dropdown"> - <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> - Categories - </a> - - <div class="dropdown-menu" aria-labelledby="navbarDropdown"> - {% for c in categories %} - <a class="dropdown-item" href="{% url 'search_category' c.name %}">{{c.name}}</a> - {% endfor %} - </div> - </li> - </ul> + {% block header %} + <nav class="navbar navbar-expand-lg navbar-custom"> + <a class="navbar-brand" href="#">FOSSEE Animations</a> + <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" + aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> + <span class="navbar-toggler-icon">=</span> + </button> + + <div class="collapse navbar-collapse" id="navbarSupportedContent"> + <ul class="navbar-nav mr-auto"> + <form class="form-inline" method="POST" action="/search/"> + {% csrf_token %} + <input class="form-control mr-sm-2" id="sbox" name="sbox" type="search" placeholder="Search" + aria-label="Search"> + <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> + </form> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" + aria-haspopup="true" aria-expanded="false"> + Categories + </a> + + <div class="dropdown-menu" aria-labelledby="navbarDropdown"> + {% for c in categories %} + <a class="dropdown-item" href="{% url 'search_category' c.name %}">{{c.name}}</a> + {% endfor %} + </div> + </li> + </ul> - {% if user.is_authenticated %} - <ul class="navbar-nav ml-auto mr-5"> - <li class="nav-item dropdown"> - <a class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> - {{user.first_name}} - </a> - {% if request.user.profile.position == 'contributor' %} - <div class="dropdown-menu" aria-labelledby="navbarDropdown"> - <a class="dropdown-item" href="{% url 'how_to' %}">How To</a> - <a class="dropdown-item" href="{% url 'send_proposal' %}">Send Proposal</a> - <a class="dropdown-item" href="{% url 'proposal_status' %}">Proposal Status</a> - <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a> - <a class="dropdown-item" href="{% url 'logout' %}">Logout</a> - </div> - {% else %} - <div class="dropdown-menu" aria-labelledby="navbarDropdown"> - <a class="dropdown-item" href="{% url 'proposal_status' %}">Submitted Proposals</a> - <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a> - <a class="dropdown-item" href="{% url 'logout' %}">Logout</a> - </div> - {% endif %} - </li> - </ul> - {% else %} - <ul class="navbar-nav ml-auto"> - <li class="nav-item"> - <a class="nav-link" href="{% url 'register' %}">Register</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="{% url 'login' %}">Login</a> - </li> - </ul> + {% if user.is_authenticated %} + <ul class="navbar-nav ml-auto mr-5"> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-toggle="dropdown" + aria-haspopup="true" aria-expanded="false"> + {{user.first_name}} + </a> + {% if request.user.profile.position == 'contributor' %} + <div class="dropdown-menu" aria-labelledby="navbarDropdown"> + <a class="dropdown-item" href="{% url 'how_to' %}">How To</a> + <a class="dropdown-item" href="{% url 'send_proposal' %}">Send Proposal</a> + <a class="dropdown-item" href="{% url 'proposal_status' %}">Proposal Status</a> + <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a> + <a class="dropdown-item" href="{% url 'logout' %}">Logout</a> + </div> + {% else %} + <div class="dropdown-menu" aria-labelledby="navbarDropdown"> + <a class="dropdown-item" href="{% url 'proposal_status' %}">Submitted Proposals</a> + <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a> + <a class="dropdown-item" href="{% url 'logout' %}">Logout</a> + </div> {% endif %} - </div> - </nav> + </li> + </ul> + {% else %} + <ul class="navbar-nav ml-auto"> + <li class="nav-item"> + <a class="nav-link" href="{% url 'register' %}">Register</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{% url 'login' %}">Login</a> + </li> + </ul> + {% endif %} + </div> + </nav> + {% endblock %} + + {% block content %} + <br><br> + <h1>Base Template Content. Please override me</h1> {% endblock %} - {% block content %} - <br><br> - <h1>Base Template Content. Please override me</h1> - {% endblock %} - </body> <br> + </html>
\ No newline at end of file diff --git a/fossee_manim/templates/registration/password_change_done.html b/fossee_manim/templates/registration/password_change_done.html index d72f7f5..2e81207 100644 --- a/fossee_manim/templates/registration/password_change_done.html +++ b/fossee_manim/templates/registration/password_change_done.html @@ -1,20 +1,19 @@ {% extends "registration/base.html" %} -{% block title %} - Password change successful +{% block title %} +Password change successful {% endblock %} {% block script %} <script type="text/javascript"> - window.setTimeout(function() - { - location.href="{{ URL_ROOT }}/login/" + window.setTimeout(function () { + location.href = "{{ URL_ROOT }}/login/" }, 3000); </script> {% endblock %} {% block content %} - <br> - <h3>Your password has been changed successfully.</h3> - <h4>Redirecting ...</h4> +<br> +<h3>Your password has been changed successfully.</h3> +<h4>Redirecting ...</h4> {% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/registration/password_change_form.html b/fossee_manim/templates/registration/password_change_form.html index 5b09d89..3133baa 100644 --- a/fossee_manim/templates/registration/password_change_form.html +++ b/fossee_manim/templates/registration/password_change_form.html @@ -4,15 +4,16 @@ {% block content %} <div class="container"> -<form action="" method="post" > - {% csrf_token %} - <center> - <table class=span1> - {{ form }} - </table> - </center> - <center><button class="btn" type="submit">Change Password</button> - <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/login/");'>Cancel</button></center> -</form> + <form action="" method="post"> + {% csrf_token %} + <center> + <table class=span1> + {{ form }} + </table> + </center> + <center><button class="btn" type="submit">Change Password</button> + <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/login/");'>Cancel</button> + </center> + </form> </div> {% endblock content %}
\ No newline at end of file diff --git a/fossee_manim/templates/registration/password_reset_confirm.html b/fossee_manim/templates/registration/password_reset_confirm.html index 57542b4..f7fc9bb 100644 --- a/fossee_manim/templates/registration/password_reset_confirm.html +++ b/fossee_manim/templates/registration/password_reset_confirm.html @@ -2,18 +2,18 @@ {% block title %}Reset Password{% endblock %} {% block content %} - <br> - <div class="container"> +<br> +<div class="container"> {% if validlink %} - <p>Please enter your new password twice so we can verify you typed it in correctly</p>. - <form method="post"> - {% csrf_token %} - {{ form.as_p }} - <button class= "btn btn-success" type="submit">Submit</button> - </form> + <p>Please enter your new password twice so we can verify you typed it in correctly</p>. + <form method="post"> + {% csrf_token %} + {{ form.as_p }} + <button class="btn btn-success" type="submit">Submit</button> + </form> {% else %} - <p>This reset link is no longer valid!</p> + <p>This reset link is no longer valid!</p> {% endif %} - </div> +</div> {% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/registration/password_reset_done.html b/fossee_manim/templates/registration/password_reset_done.html index e91ff73..c1f0e84 100644 --- a/fossee_manim/templates/registration/password_reset_done.html +++ b/fossee_manim/templates/registration/password_reset_done.html @@ -1,14 +1,14 @@ {% extends "registration/base.html" %} {% block title %} - Password reset successful +Password reset successful {% endblock %} {% block content %} - <div class="container"> +<div class="container"> <br> - <h3>Instruction for setting new password has been mailed - to your registered email address + <h3>Instruction for setting new password has been mailed + to your registered email address </h3> - </div> +</div> {% endblock %}
\ No newline at end of file diff --git a/fossee_manim/templates/registration/password_reset_form.html b/fossee_manim/templates/registration/password_reset_form.html index 5bf049f..71507b2 100644 --- a/fossee_manim/templates/registration/password_reset_form.html +++ b/fossee_manim/templates/registration/password_reset_form.html @@ -1,21 +1,21 @@ {% extends "registration/base.html" %} -{% block title %} - Forgot Password +{% block title %} +Forgot Password {% endblock %} {% block content %} <br> <br> <div class="container"> -<h3>Email will be send to the registered email address</h3> -<form action="" method="post"> - {% csrf_token %} - <table class="table table-bordered"> - {{ form }} - </table> - <button class="btn btn-success btn-sm" type="submit">Request</button> - <a class="btn" href="{{URL_ROOT}}/login/">Cancel</a> -</form> + <h3>Email will be send to the registered email address</h3> + <form action="" method="post"> + {% csrf_token %} + <table class="table table-bordered"> + {{ form }} + </table> + <button class="btn btn-success btn-sm" type="submit">Request</button> + <a class="btn" href="{{URL_ROOT}}/login/">Cancel</a> + </form> </div> {% endblock content %}
\ No newline at end of file diff --git a/fossee_manim/urls.py b/fossee_manim/urls.py index a9af19e..d7b228b 100644 --- a/fossee_manim/urls.py +++ b/fossee_manim/urls.py @@ -34,6 +34,8 @@ urlpatterns = [ url(r'^libraryCS/$', views.libraryCS, name='libraryCS'), url(r'^explore/(?P<category>.+)$', views.explore, name='explore'), + url(r'^delete_proposal/([1-9][0-9]*)$',views.delete_proposal,name='delete_proposal'), + url(r'^delete_proposal_info/([1-9][0-9]*)$',views.delete_proposal_info,name='delete_proposal_info'), ] urlpatterns += static( diff --git a/fossee_manim/views.py b/fossee_manim/views.py index 4f3cf44..3ea851e 100644 --- a/fossee_manim/views.py +++ b/fossee_manim/views.py @@ -2,7 +2,8 @@ from os import listdir, path, sep, makedirs, remove from .forms import ( UserRegistrationForm, UserLoginForm, ProfileForm, AnimationProposal, - CommentForm, UploadAnimationForm + CommentForm, UploadAnimationForm, + AnimationProposal_edit ) from .models import ( Profile, User, AnimationStats, @@ -28,6 +29,7 @@ from .send_mails import send_email import datetime as dt import logging.config import shutil + try: from StringIO import StringIO as string_io except ImportError: @@ -345,12 +347,148 @@ def proposal_status(request): @login_required +def sortproposal_released(request): + user = request.user + if is_email_checked(user) and user.is_authenticated(): + profile = Profile.objects.get(user_id=user) + categories = Category.objects.all() + if profile.position == 'contributor': + animations = Animation.objects.filter( + contributor_id=user, status='released').order_by('-created') + else: + animations = Animation.objects.filter( + status='released').order_by('-created') + # print(animations) + + # Show upto 9 proposals per page + paginator = Paginator(list(animations), 9) + page = request.GET.get('page') + try: + anime = paginator.page(page) + print(animations.count(), anime) + except PageNotAnInteger: + # If page is not an integer, deliver first page. + anime = paginator.page(1) + except EmptyPage: + # If page is out of range(e.g 999999), deliver last page. + anime = paginator.page(paginator.num_pages) + + return render(request, 'fossee_manim/proposal_status.html', + {'anime': anime, + 'categories': categories}) + else: + return redirect('/login/') + + +@login_required +def sortproposal_rejected(request): + user = request.user + if is_email_checked(user) and user.is_authenticated(): + profile = Profile.objects.get(user_id=user) + categories = Category.objects.all() + if profile.position == 'contributor': + animations = Animation.objects.filter( + contributor_id=user, status='rejected').order_by('-created') + else: + animations = Animation.objects.filter( + status='rejected').order_by('-created') + # print(animations) + + # Show upto 9 proposals per page + paginator = Paginator(list(animations), 9) + page = request.GET.get('page') + try: + anime = paginator.page(page) + print(animations.count(), anime) + except PageNotAnInteger: + # If page is not an integer, deliver first page. + anime = paginator.page(1) + except EmptyPage: + # If page is out of range(e.g 999999), deliver last page. + anime = paginator.page(paginator.num_pages) + + return render(request, 'fossee_manim/proposal_status.html', + {'anime': anime, + 'categories': categories}) + else: + return redirect('/login/') + + +@login_required +def sortproposal_changes(request): + user = request.user + if is_email_checked(user) and user.is_authenticated(): + profile = Profile.objects.get(user_id=user) + categories = Category.objects.all() + if profile.position == 'contributor': + animations = Animation.objects.filter( + contributor_id=user, status='changes').order_by('-created') + else: + animations = Animation.objects.filter( + status='changes').order_by('-created') + # print(animations) + + # Show upto 9 proposals per page + paginator = Paginator(list(animations), 9) + page = request.GET.get('page') + try: + anime = paginator.page(page) + print(animations.count(), anime) + except PageNotAnInteger: + # If page is not an integer, deliver first page. + anime = paginator.page(1) + except EmptyPage: + # If page is out of range(e.g 999999), deliver last page. + anime = paginator.page(paginator.num_pages) + + return render(request, 'fossee_manim/proposal_status.html', + {'anime': anime, + 'categories': categories}) + else: + return redirect('/login/') + + +@login_required +def sortproposal_pending(request): + user = request.user + if is_email_checked(user) and user.is_authenticated(): + profile = Profile.objects.get(user_id=user) + categories = Category.objects.all() + if profile.position == 'contributor': + animations = Animation.objects.filter( + contributor_id=user, status='pending').order_by('-created') + else: + animations = Animation.objects.filter( + status='pending').order_by('-created') + # print(animations) + + # Show upto 9 proposals per page + paginator = Paginator(list(animations), 9) + page = request.GET.get('page') + try: + anime = paginator.page(page) + print(animations.count(), anime) + except PageNotAnInteger: + # If page is not an integer, deliver first page. + anime = paginator.page(1) + except EmptyPage: + # If page is out of range(e.g 999999), deliver last page. + anime = paginator.page(paginator.num_pages) + + return render(request, 'fossee_manim/proposal_status.html', + {'anime': anime, + 'categories': categories}) + else: + return redirect('/login/') + + +@login_required def edit_proposal(request, proposal_id=None): user = request.user if is_email_checked(user) and user.is_authenticated(): comment_form = CommentForm() proposal = Animation.objects.get(id=proposal_id) - proposal_form = AnimationProposal(instance=proposal) + proposal_form = AnimationProposal_edit(instance=proposal) upload_form = UploadAnimationForm() categories = Category.objects.all() video = AnimationStats.objects.filter(animation=proposal_id) @@ -403,7 +541,8 @@ def edit_proposal(request, proposal_id=None): proposal=proposal) form_data.save() return redirect('/edit_proposal/{}'.format(proposal_id)) - proposal_form = AnimationProposal(request.POST, instance=proposal) + proposal_form = AnimationProposal_edit( + request.POST, instance=proposal) if proposal_form.is_valid(): p_f = proposal_form.save(commit=False) p_f.contributor = user @@ -417,7 +556,7 @@ def edit_proposal(request, proposal_id=None): return redirect('/register/') if comments is not None: - # Show upto 12 Workshops per page + # Show upto 12 Workshops per page paginator = Paginator(comments, 9) page = request.GET.get('page') try: @@ -438,6 +577,90 @@ def edit_proposal(request, proposal_id=None): 'msg': msg}) +@login_required +def show_proposal_detail(request, proposal_id=None): + user = request.user + if is_email_checked(user) and user.is_authenticated(): + try: + proposal = Animation.objects.get(id=proposal_id) + return render(request, 'fossee_manim/delete_proposal.html', {'proposal': proposal}) + except: + profile = Profile.objects.get(user_id=user) + categories = Category.objects.all() + if profile.position == 'contributor': + animations = Animation.objects.filter( + contributor_id=user).order_by('-created') + else: + animations = Animation.objects.order_by('-created') + + paginator = Paginator(list(animations), 9) + page = request.GET.get('page') + try: + anime = paginator.page(page) + print(animations.count(), anime) + except PageNotAnInteger: + anime = paginator.page(1) + except EmptyPage: + anime = paginator.page(paginator.num_pages) + + return render(request, 'fossee_manim/proposal_status.html', + {'anime': anime, + 'categories': categories}) + else: + return redirect('/register/') + + +@login_required +def delete_proposal(request, proposal_id=None): + user = request.user + if is_email_checked(user) and user.is_authenticated(): + try: + proposal = Animation.objects.get(id=proposal_id) + proposal.delete() + profile = Profile.objects.get(user_id=user) + categories = Category.objects.all() + if profile.position == 'contributor': + animations = Animation.objects.filter( + contributor_id=user).order_by('-created') + else: + animations = Animation.objects.order_by('-created') + paginator = Paginator(list(animations), 9) + page = request.GET.get('page') + try: + anime = paginator.page(page) + print(animations.count(), anime) + except PageNotAnInteger: + anime = paginator.page(1) + except EmptyPage: + anime = paginator.page(paginator.num_pages) + + return render(request, 'fossee_manim/proposal_status.html', {'anime': anime, 'categories': categories}) + except: + profile = Profile.objects.get(user_id=user) + categories = Category.objects.all() + if profile.position == 'contributor': + animations = Animation.objects.filter( + contributor_id=user).order_by('-created') + else: + animations = Animation.objects.order_by('-created') + + paginator = Paginator(list(animations), 9) + page = request.GET.get('page') + try: + anime = paginator.page(page) + print(animations.count(), anime) + except PageNotAnInteger: + anime = paginator.page(1) + except EmptyPage: + anime = paginator.page(paginator.num_pages) + + return render(request, 'fossee_manim/proposal_status.html', + {'anime': anime, + 'categories': categories}) + else: + return redirect('/login/') + + def search(request): categories = Category.objects.all() if request.method == 'POST': @@ -453,6 +676,34 @@ def search(request): return render(request, 'fossee_manim/search_results.html', {'s_result': anime_list, 'categories': categories}) +# search results for proposal + + +def search_proposal(request): + user = request.user + if is_email_checked(user) and user.is_authenticated(): + profile = Profile.objects.get(user_id=user) + categories = Category.objects.all() + word = request.POST.get('sbox') + animations = Animation.objects.filter(title=word) + paginator = Paginator(list(animations), 9) + page = request.GET.get('page') + try: + anime = paginator.page(page) + print(animations.count(), anime) + except PageNotAnInteger: + # If page is not an integer, deliver first page. + anime = paginator.page(1) + except EmptyPage: + # If page is out of range(e.g 999999), deliver last page. + anime = paginator.page(paginator.num_pages) + + return render(request, 'fossee_manim/proposal_status.html', + {'anime': anime, + 'categories': categories}) + else: + return redirect('/login/') + @login_required def upload_animation(request, proposal_id=None): |